Add jsr test

This commit is contained in:
Byron Lathi
2023-10-15 13:30:09 -07:00
parent afd8de92cc
commit 32f6c0f8d9
6 changed files with 116 additions and 5 deletions

View File

@@ -0,0 +1,23 @@
.export _init, _nmi_int, _irq_int
.code
_nmi_int:
_irq_int:
_init:
ldx #$ff
txs
lda #$00
jsr subroutine
sta $00
@1: bra @1
subroutine:
inc
jsr suborutine2
rts
suborutine2:
inc
rts