mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-12-27 17:29:49 +00:00
chiptune: paramaterize load location
This commit is contained in:
parent
0fe3292ac7
commit
74e9595312
@ -7,7 +7,7 @@ all: chiptune_player.dsk
|
||||
|
||||
chiptune_player.dsk: CHIPTUNE_PLAYER OUT.0
|
||||
$(DOS33) -y chiptune_player.dsk BSAVE -a 0x1000 CHIPTUNE_PLAYER
|
||||
$(DOS33) -y chiptune_player.dsk BSAVE -a 0x4000 OUT.0
|
||||
$(DOS33) -y chiptune_player.dsk BSAVE -a 0x6000 OUT.0
|
||||
|
||||
|
||||
CHIPTUNE_PLAYER: chiptune_player.o
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
.include "zp.inc"
|
||||
|
||||
CHUNK_BUFFER EQU $6000
|
||||
|
||||
;=============================
|
||||
; Print message
|
||||
;=============================
|
||||
@ -57,9 +59,9 @@ mockingboard_found:
|
||||
; init pointer to the music
|
||||
;===========================
|
||||
|
||||
lda #$40
|
||||
lda #>CHUNK_BUFFER
|
||||
sta INH
|
||||
lda #$00
|
||||
lda #<CHUNK_BUFFER
|
||||
sta INL
|
||||
lda #$0
|
||||
sta MB_CHUNK
|
||||
@ -206,7 +208,7 @@ mb_not_13:
|
||||
skip_r13:
|
||||
lda MB_CHUNK
|
||||
clc
|
||||
adc #$40
|
||||
adc #>CHUNK_BUFFER
|
||||
sta INH
|
||||
|
||||
inc MB_FRAME_DIFF
|
||||
@ -240,6 +242,7 @@ done_interrupt:
|
||||
.include "../asm_routines/pageflip.s"
|
||||
.include "../asm_routines/gr_unrle.s"
|
||||
.include "../asm_routines/gr_setpage.s"
|
||||
.include "../asm_routines/dos33_routines.s"
|
||||
|
||||
;=======
|
||||
; music
|
||||
|
Loading…
Reference in New Issue
Block a user