Skip to content

Commit cda9a96

Browse files
authored
Update nmi.asm
Stores the return address of NMI to nmiReturnAddr
1 parent f7d2235 commit cda9a96

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/nmi/nmi.asm

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@ nmi: pha
3434
pla
3535
tay
3636
pla
37+
sta tmp1
38+
pla
39+
sta tmp2
40+
pla
3741
tax
3842
pla
43+
sta nmiReturnAddr
44+
pha
45+
txa
46+
pha
47+
ldx tmp1
48+
lda tmp2
3949
irq: rti

0 commit comments

Comments
 (0)