ds: add frame playing in crate_update_type1

This commit is contained in:
Vince Weaver 2019-11-13 23:21:59 -05:00
parent 5b7901d1c9
commit 95b7bb3338
2 changed files with 29 additions and 11 deletions

View File

@ -20,6 +20,8 @@ create_update_type1:
sta OUTL ; 3
lda #>UPDATE_START ; 2
sta OUTH ; 3
lda #19
sta FORCE_MUSIC
;===========
; 12
create_update_outer_loop:
@ -50,6 +52,21 @@ create_update_inner_loop:
adc #0 ; 2
sta OUTH ; 3
dec FORCE_MUSIC
bne no_force_music
lda #19
sta FORCE_MUSIC
txa
pha
jsr play_frame_compressed
pla
tax
no_force_music:
dex ; 2
bne create_update_outer_loop ; 3
;===========

View File

@ -11,17 +11,17 @@ DELTA = $08
;; Zero page monitor routines addresses
WNDLFT = $20
WNDWDTH = $21
WNDTOP = $22
WNDBTM = $23
CH = $24
CV = $25
GBASL = $26
GBASH = $27
BASL = $28
BASH = $29
H2 = $2C
WNDLFT = $20
WNDWDTH = $21
WNDTOP = $22
WNDBTM = $23
CH = $24
CV = $25
GBASL = $26
GBASH = $27
BASL = $28
BASH = $29
H2 = $2C
V2 = $2D
MASK = $2E
COLOR_MASK = $2F
@ -101,6 +101,7 @@ KEYPTRL = $90
KEYPTRH = $91
KEY_COUNTDOWN = $92
KEYPTR = $93
FORCE_MUSIC = $94
; have to be consecutive
DOOR_STATUS = $B0