mirror of
https://github.com/buserror/mii_emu.git
synced 2024-12-02 22:49:18 +00:00
18 lines
316 B
NASM
18 lines
316 B
NASM
|
; 65c02 Indirect Indexed JMP ($xxx,X)
|
||
|
.org $2000
|
||
|
jump_ad = $3000
|
||
|
;.verbose
|
||
|
JMP skip
|
||
|
ind LDA #$99 ; $2003
|
||
|
BRA pass
|
||
|
skip: LDA #<ind ; $2000
|
||
|
LDY #$02
|
||
|
STA jump_ad,Y
|
||
|
INY
|
||
|
LDA #>ind
|
||
|
STA jump_ad,Y
|
||
|
LDX #$02
|
||
|
JMP ($3000,X) ; JMP -> $2003
|
||
|
fail BRK ; JMP Failed!
|
||
|
pass BRK
|