slightlyy safer interrupts, they disable BCD mode now

This commit is contained in:
FeralChild64 committed 2019-09-13 23:04:45 +02:00
1 parent 8fce9681be
commit 2dbb696628
2 files changed
+3

No files matched your search

+2
View File
@@ -15,6 +15,8 @@ irq_handler:
tya
pha
cld // clear decimal flag, to prevent possible problems
// Check if caused by BRK
tsx
lda $0104, x // get the pre-interrupt processor state
+1
View File
@@ -2,6 +2,7 @@
nmi_handler:
sei // don't allow IRQ to interfere, see https://www.c64-wiki.com/wiki/Interrupt
cld // clear decimal flag, to prevent possible problems
// Call interrupt routine (only if initialised)
pha