mockingboard: trying to get IRQ handler working on II+/IIe

This commit is contained in:
Vince Weaver 2018-10-29 12:04:19 -04:00
parent f677ea9ac0
commit 63b251cb7d

View File

@ -148,12 +148,14 @@ reset_ay_right:
interrupt_handler:
; A saved by firmware in $45
sta $45
; sta $45
txa
pha ; save X
tya
pha ; save Y
bit $C404 ; clear 6522 interrupt by reading T1C-L ; 4
jsr play_music
pla
@ -162,8 +164,6 @@ interrupt_handler:
tax ; restore X
lda $45 ; restore A
bit $C404 ; clear 6522 interrupt by reading T1C-L ; 4
rti ; return from interrupt ; 6