mirror of
https://github.com/jeremysrand/mocklib.git
synced 2025-01-05 00:29:42 +00:00
Save and restore the accumulator in the interrupt handler.
This commit is contained in:
parent
84a08225de
commit
9bb4f83010
@ -85,6 +85,7 @@ _busy: .byte $00
|
||||
|
||||
|
||||
.proc _interr
|
||||
PHA
|
||||
TXA ;SAVE REGISTERS
|
||||
PHA
|
||||
TYA
|
||||
@ -120,7 +121,7 @@ _busy: .byte $00
|
||||
TAY
|
||||
PLA
|
||||
TAX
|
||||
LDA $45
|
||||
PLA
|
||||
RTI ;RETURN FROM INTERRUPT
|
||||
|
||||
@L1:
|
||||
|
Loading…
Reference in New Issue
Block a user