chiptune_player: end of song truncated, can't figure out why :(

This commit is contained in:
Vince Weaver 2018-02-22 01:07:02 -05:00
parent c8ad0aae02
commit 05ac8c64d9
2 changed files with 6 additions and 1 deletions

Binary file not shown.

View File

@ -179,13 +179,17 @@ done_play:
lda #0 lda #0
sta CH sta CH
jsr clear_bottoms
lda #21 lda #21
sta CV sta CV
lda #<done_message lda #<done_message
sta OUTL sta OUTL
lda #>done_message lda #>done_message
sta OUTH sta OUTH
jsr move_and_print
jsr print_both_pages
forever_loop: forever_loop:
jmp forever_loop jmp forever_loop
@ -262,6 +266,7 @@ mb_write_loop:
bne mb_not_one bne mb_not_one
cmp #$ff ; if ff, done song cmp #$ff ; if ff, done song
bne mb_not_one bne mb_not_one
lda #1 lda #1
sta DONE_PLAYING sta DONE_PLAYING
jmp done_interrupt jmp done_interrupt