Skip to content

Commit 11159af

Browse files
authored
improved nmireturnAddr
thanks to zohassadar
1 parent 247a4aa commit 11159af

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

src/nmi/nmi.asm

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,10 @@ nmi: pha
3333
.endif
3434
pla
3535
tay
36-
pla
37-
sta tmp1
38-
pla
39-
sta tmp2
36+
tsx
37+
lda stack+5,x
38+
sta nmiReturnAddr
4039
pla
4140
tax
4241
pla
43-
sta nmiReturnAddr
44-
pha
45-
txa
46-
pha
47-
ldx tmp1
48-
lda tmp2
4942
irq: rti

0 commit comments

Comments
 (0)