mirror of
https://github.com/jeremysrand/mocklib.git
synced 2024-09-27 10:55:07 +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
|
.proc _interr
|
||||||
|
PHA
|
||||||
TXA ;SAVE REGISTERS
|
TXA ;SAVE REGISTERS
|
||||||
PHA
|
PHA
|
||||||
TYA
|
TYA
|
||||||
@ -120,7 +121,7 @@ _busy: .byte $00
|
|||||||
TAY
|
TAY
|
||||||
PLA
|
PLA
|
||||||
TAX
|
TAX
|
||||||
LDA $45
|
PLA
|
||||||
RTI ;RETURN FROM INTERRUPT
|
RTI ;RETURN FROM INTERRUPT
|
||||||
|
|
||||||
@L1:
|
@L1:
|
||||||
|
Loading…
Reference in New Issue
Block a user