safer NMI handling

This commit is contained in:
FeralChild64 committed 2020-06-04 22:19:10 +02:00
1 parent 1c118d9bc9
commit f8e57f1cf2
10 files changed
+114 -19

No files matched your search

+4 -1
View File
@@ -23,6 +23,9 @@ vector_real:
sty MEMUSS + 1
stx MEMUSS + 0
lda #$00
sta NMINV + 1 // our routine considers this a disabled interrupt
// Select routine variant - store or restore vectors
ldy #$1F
bcc vector_restore
@@ -30,7 +33,7 @@ vector_real:
lda CINV, y
sta (MEMUSS), y
bcs vector_end_loop // branch always
bcs vector_end_loop // branch always
vector_restore:
lda (MEMUSS), y