Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; it takes accumulator as input
- ; and it outputs in accumulator!
- ; WE EXPECT TWO BYTES VALUE!
- ; please enter this code in 16-bit mode!
- !FreeRAM = $00 ; $00 is $7E0000
- ; we also accept $0000 format
- ; and $7E0000 one
- ; you need 2 bytes!
- !UMTTIME = $2042 ; insert UMT TIME
- ; in form hhmm
- !TIMEZONE = $01 ; insert time zone modifier
- ; use signed values for
- ; negative ($FF is -1)
- !RTSCOMMAND = $60 ; $60 is for RTS
- ; $6B is for RTL
- ; $40 is for RTI
- ; usually you should
- ; use RTS - $60
- LDA #!UMTTIME
- CLC
- ADC #!TIMEZONE*$100
- STA !FreeRAM
- SEP #$20
- SuperMarioWin:
- LDA !FreeRAM
- CMP #$24
- BCS SuperRestorationDeluxe
- REP #$20
- db !RTSCOMMAND
- SuperRestorationDeluxe:
- BMI SuperRestorationDeluxe64
- SEC
- SBC #$24;
- STA !FreeRAM
- BRA SuperMarioWin;
- SuperRestorationDeluxe64:
- CLC
- ADC #$24;
- STA !FreeRAM
- BRA SuperMarioWin;
- ; Now the question is - what are you going to do
- ; with this knowledge. Upload to statusbar? WHAT?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement