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
|
tya
|
||||||
pha
|
pha
|
||||||
|
|
||||||
|
cld // clear decimal flag, to prevent possible problems
|
||||||
|
|
||||||
// Check if caused by BRK
|
// Check if caused by BRK
|
||||||
tsx
|
tsx
|
||||||
lda $0104, x // get the pre-interrupt processor state
|
lda $0104, x // get the pre-interrupt processor state
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
nmi_handler:
|
nmi_handler:
|
||||||
|
|
||||||
sei // don't allow IRQ to interfere, see https://www.c64-wiki.com/wiki/Interrupt
|
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)
|
// Call interrupt routine (only if initialised)
|
||||||
pha
|
pha
|
||||||
|
|||||||
Reference in new issue
Block a user