STOP + RESTORE now works (bad news: works even without STOP)
This commit is contained in:
1 parent
03bc8b8e78
commit
e4ddf9ec0c
12 files changed
+46
-19
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user