mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-03-03 12:31:32 +00:00
mockingboard: trying to get IRQ handler working on II+/IIe
This commit is contained in:
parent
f677ea9ac0
commit
63b251cb7d
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user