pt3_player: making sure we match most recen pt3_lib

have reports it breaks on some machines
This commit is contained in:
Vince Weaver 2021-02-21 23:10:30 -05:00
parent 98b2178304
commit 42402e19c5
3 changed files with 7 additions and 6 deletions

View File

@ -21,7 +21,8 @@
TIME_OFFSET = 13
interrupt_handler:
php
php ; save status flags
cld ; clear decimal mode
pha ; save A ; 3
; A is saved in $45 by firmware
txa
@ -207,10 +208,9 @@ exit_interrupt:
tay ; restore Y
pla
tax ; restore X
pla ; restore A ; 4
pla ; restore a ; 4
; this is needed on II+/IIe not not IIc
; on II+/IIe (but not IIc) we need to do this?
interrupt_smc:
lda $45 ; restore A
plp

View File

@ -34,7 +34,8 @@ pt3_loop_smc:
sta current_subframe_smc+1
sta DONE_SONG ; undo the next song
beq done_pt3_irq_handler ; branch always
; beq done_pt3_irq_handler ; branch always
beq pt3_play_music ; branch always
move_to_next:
; same as "press right"

View File

@ -1,7 +1,7 @@
; read any file slot 6 version
; based on FASTLD6 and RTS copyright (c) Peter Ferrie 2011-2013,2018
; modified to assembled with ca64 -- vmw
; modified to assembled with ca65 -- vmw
; added code to patch it to run from current disk slot -- vmw