Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; it takes accumulator as input
  2. ; and it outputs in accumulator!
  3. ; WE EXPECT TWO BYTES VALUE!
  4.  
  5. ; please enter this code in 16-bit mode!
  6.  
  7. !FreeRAM = $00    ; $00 is $7E0000
  8.                   ; we also accept $0000 format
  9.                   ; and $7E0000 one
  10.                   ; you need 2 bytes!
  11.  
  12. !UMTTIME = $2042  ; insert UMT TIME
  13.                   ; in form hhmm
  14.  
  15. !TIMEZONE = $01   ; insert time zone modifier
  16.                   ; use signed values for
  17.                   ; negative ($FF is -1)
  18.  
  19. !RTSCOMMAND = $60 ; $60 is for RTS
  20.                   ; $6B is for RTL
  21.                   ; $40 is for RTI
  22.  
  23.                   ; usually you should
  24.                   ; use RTS - $60
  25.  
  26. LDA #!UMTTIME
  27. CLC
  28. ADC #!TIMEZONE*$100
  29. STA !FreeRAM
  30. SEP #$20
  31.  
  32. SuperMarioWin:
  33. LDA !FreeRAM
  34. CMP #$24
  35. BCS SuperRestorationDeluxe
  36. REP #$20
  37. db !RTSCOMMAND
  38.  
  39. SuperRestorationDeluxe:
  40. BMI SuperRestorationDeluxe64
  41. SEC
  42. SBC #$24;
  43. STA !FreeRAM
  44. BRA SuperMarioWin;
  45.  
  46. SuperRestorationDeluxe64:
  47. CLC
  48. ADC #$24;
  49. STA !FreeRAM
  50. BRA SuperMarioWin;
  51.  
  52. ; Now the question is - what are you going to do
  53. ; with this knowledge. Upload to statusbar? WHAT?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement