diff --git a/demosplash/create_update_type1.s b/demosplash/create_update_type1.s index 633ad5b3..d2ce1906 100644 --- a/demosplash/create_update_type1.s +++ b/demosplash/create_update_type1.s @@ -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 ;=========== diff --git a/demosplash/zp.inc b/demosplash/zp.inc index 4d614a50..9d661d53 100644 --- a/demosplash/zp.inc +++ b/demosplash/zp.inc @@ -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