Save and restore the accumulator in the interrupt handler.

This commit is contained in:
Jeremy Rand 2016-10-05 23:27:51 -04:00
parent 84a08225de
commit 9bb4f83010
1 changed files with 2 additions and 1 deletions

View File

@ -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: