xmas24: hack to get music looping

stupid $C4 auto-patch problem again
This commit is contained in:
Vince Weaver 2024-12-21 11:58:11 -05:00
parent 9cc5345061
commit c1317a14d6
3 changed files with 39 additions and 12 deletions

View File

@ -11,7 +11,10 @@ music_lib:
PT3_ENABLE_APPLE_IIC = 1
; nop ; urgh to keep interrupt_handler from starting at $C4
nop
nop
nop ; urgh to keep interrupt_handler from starting at $C4
; which broke auto-patcher
; pt3 player

View File

@ -16,6 +16,11 @@ xmas_main:
; init
;======================================
;======================================
; clear screen to black, HGR PAGE1
;======================================
lda #$00
jsr hgr_page1_clearscreen
@ -24,15 +29,33 @@ xmas_main:
bit PAGE1
;======================================
; draw opening scene
; star-wipe to Merry Christmas
;======================================
; start music
jsr wipe_star
cli
;======================================
; Load guinea pig from disk
;======================================
lda #4 ; load Guinea Pig from disk
sta WHICH_LOAD
jsr load_file
;======================================
; star-wipe again
;======================================
jsr wipe_star
;======================================
; start music
;======================================
cli
jsr do_scroll
repeat:

View File

@ -8,13 +8,13 @@
; ZX0 decompression addresses
ZX0_src = $00
ZX0_dst = $02
offset = $04
bitr = $06
pntr = $07
WHICH_LOAD = $09
CURRENT_DISK = $0A
;ZX0_src = $00
;ZX0_dst = $02
;offset = $04
;bitr = $06
;pntr = $07
; Zero page monitor routines addresses
; We don't use the monitor but we use some of these anyway
@ -108,7 +108,8 @@ BOARD_COUNT = $D5
WHICH_SLOT = $DA ; from boot sector
WHICH_LOAD = $DB
CURRENT_DISK = $DC
;==============================================
; $E0-$EF use for common things, don't re-use