slightlyy safer interrupts, they disable BCD mode now
This commit is contained in:
1 parent
8fce9681be
commit
2dbb696628
2 files changed
+3
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user