From 74e95953123d6f40ef2ac661f75ca90cc461551d Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Sat, 17 Feb 2018 21:28:49 -0500 Subject: [PATCH] chiptune: paramaterize load location --- chiptune_player/Makefile | 2 +- chiptune_player/chiptune_player.s | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/chiptune_player/Makefile b/chiptune_player/Makefile index cc3efbeb..d7aba0de 100644 --- a/chiptune_player/Makefile +++ b/chiptune_player/Makefile @@ -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 diff --git a/chiptune_player/chiptune_player.s b/chiptune_player/chiptune_player.s index c6043637..c76c22ac 100644 --- a/chiptune_player/chiptune_player.s +++ b/chiptune_player/chiptune_player.s @@ -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 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