mirror of
https://github.com/buserror/mii_emu.git
synced 2024-11-22 16:33:01 +00:00
26 lines
320 B
NASM
26 lines
320 B
NASM
|
; 65c02 JSR/RTS/SBC/BEQ
|
||
|
.org $2000
|
||
|
;.verbose
|
||
|
CLC
|
||
|
LDA #$00
|
||
|
JSR skip
|
||
|
SEC
|
||
|
SBC #$03
|
||
|
BEQ back
|
||
|
JMP fail
|
||
|
skip LDA #$03
|
||
|
RTS
|
||
|
fail BRK ; JSR Failed!
|
||
|
; now test setting some address on the stack and call RTS
|
||
|
jump LDA #>pass
|
||
|
PHA
|
||
|
LDA #<pass
|
||
|
DEC
|
||
|
PHA
|
||
|
RTS
|
||
|
BRK
|
||
|
back BRA jump
|
||
|
BRK
|
||
|
rts_on NOP
|
||
|
pass BRK
|