Update assembly tests

This commit is contained in:
2026-05-08 22:07:13 -07:00
parent c4d91a1994
commit 6c47ce12a5
3 changed files with 89 additions and 6 deletions

View File

@@ -1,5 +1,9 @@
.export vec_reset, vec_irq, vec_nmi
.ZEROPAGE
result: .res 1
.segment "CODE"
vec_nmi:
@@ -8,4 +12,21 @@ vec_irq:
jsr_test:
bra 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