Reviewed-on: #2 Co-authored-by: Byron Lathi <byron@byronlathi.com> Co-committed-by: Byron Lathi <byron@byronlathi.com>
33 lines
304 B
ArmAsm
33 lines
304 B
ArmAsm
.export vec_reset, vec_irq, vec_nmi
|
|
|
|
.ZEROPAGE
|
|
|
|
result: .res 1
|
|
|
|
.segment "CODE"
|
|
|
|
vec_nmi:
|
|
vec_reset:
|
|
vec_irq:
|
|
|
|
|
|
jsr_test:
|
|
lda #$ff
|
|
sta result
|
|
ldx #$ff
|
|
txs
|
|
jsr function_1
|
|
lda #$01
|
|
sta result
|
|
wai
|
|
|
|
function_2:
|
|
pha
|
|
pla
|
|
rts
|
|
|
|
function_1:
|
|
jsr function_2
|
|
rts
|
|
|