STOP + RESTORE now works (bad news: works even without STOP)

This commit is contained in:
FeralChild64 committed 2019-08-06 22:00:50 +02:00
1 parent 03bc8b8e78
commit e4ddf9ec0c
12 files changed
+46 -19

No files matched your search

+12 -1
View File
@@ -1,7 +1,18 @@
nmi_handler:
;; XXX provide real implementation
sei ;; don't allow IRQ to interfere, see https://www.c64-wiki.com/wiki/Interrupt
;; Call interrupt routine (only if initialised)
pha
lda NMINV
ora NMINV+1
bne +
pla
jmp (NMINV)
*
;; Vector not initialized - call default interrupt routine
pla
jmp default_nmi_handler