mode7: music restarts properly when restarting

This commit is contained in:
Vince Weaver 2018-03-19 16:33:08 -04:00
parent 60f306dd5c
commit cadce8fbb4
3 changed files with 10 additions and 18 deletions

View File

@ -278,9 +278,11 @@ credits:
.byte 14 ; 10
.asciiz "UTOPIA BBS"
.byte 10 ; 18
.asciiz "FORD PERFECT (SIC)"
;.asciiz "FORD PERFECT (SIC)"
.asciiz "AAAAAAAAAAAAAAAAAA"
.byte 14 ; 10
.asciiz "PIANOMAN08"
;.asciiz "PIANOMAN08"
.asciiz "AAAAAAAAAA"
.byte 12 ; 13
.asciiz "THE 7HORSEMEN"
.byte 9 ; 20

View File

@ -268,22 +268,12 @@ increment_done:
;=================================
done_interrupt:
; jmp exit_interrupt
jmp exit_interrupt
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
lda #1
sta DONE_PLAYING
jsr clear_ay_both
exit_interrupt:

View File

@ -52,7 +52,7 @@ start:
; Mockingboard start
;================================
main_loop:
mockingboard_setup:
sei ; disable interrupts just in case
@ -98,7 +98,7 @@ mockingboard_setup:
;============================
; Start Playing
;============================
main_loop:
lda #0
sta DONE_PLAYING
sta WHICH_CHUNK