chiptune: clear out next-play register when song done

This commit is contained in:
Vince Weaver 2018-03-11 00:36:23 -05:00
parent 75332654ac
commit 5dcf33ec03
3 changed files with 11 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@ -346,6 +346,17 @@ quiet_exit:
sta DONE_PLAYING
jsr clear_ay_both
;=====================================
; clear register area
;=====================================
ldx #13 ; 2
lda #0 ; 2
mb_clear_reg:
sta REGISTER_DUMP,X ; clear register value ; 4
sta REGISTER_OLD,X ; clear old values ; 4
dex ; 2
bpl mb_clear_reg ; 2nt/3
exit_interrupt:
pla ; restore a ; 4