2021-01-05 23:24:09 +00:00
|
|
|
include ../../Makefile.inc
|
2018-11-19 18:06:19 +00:00
|
|
|
|
2021-01-05 23:24:09 +00:00
|
|
|
DOS33 = ../../utils/dos33fs-utils/dos33
|
|
|
|
PNG2GR = ../../utils/gr-utils/png2gr
|
|
|
|
TOKENIZE = ../../utils/asoft_basic-utils/tokenize_asoft
|
2018-11-19 18:06:19 +00:00
|
|
|
|
2018-11-19 18:37:06 +00:00
|
|
|
all: chiptune_dya.dsk
|
2018-11-19 18:06:19 +00:00
|
|
|
|
|
|
|
$(DOS33):
|
|
|
|
cd ../dos33fs-utils && make
|
|
|
|
|
2018-11-19 18:37:06 +00:00
|
|
|
chiptune_dya.dsk: CHIPTUNE_PLAYER HELLO
|
|
|
|
cp chiptune_empty.dsk chiptune_dya.dsk
|
|
|
|
$(DOS33) -y chiptune_dya.dsk SAVE A HELLO
|
2018-11-20 01:38:13 +00:00
|
|
|
$(DOS33) -y chiptune_dya.dsk BSAVE -a 0x0800 CHIPTUNE_PLAYER
|
|
|
|
$(DOS33) -y chiptune_dya.dsk BSAVE -a 0x1c00 DOTD1.KRW
|
2018-11-20 18:22:17 +00:00
|
|
|
$(DOS33) -y chiptune_dya.dsk BSAVE -a 0xd100 DOTD2.KRW
|
2018-11-19 18:06:19 +00:00
|
|
|
|
|
|
|
HELLO: hello.bas
|
2021-01-05 23:24:09 +00:00
|
|
|
$(TOKENIZE) < hello.bas > HELLO
|
2018-11-19 18:06:19 +00:00
|
|
|
|
|
|
|
CHIPTUNE_PLAYER: chiptune_player.o
|
2021-01-05 23:24:09 +00:00
|
|
|
ld65 -o CHIPTUNE_PLAYER chiptune_player.o -C apple2_800.inc
|
2018-11-19 18:06:19 +00:00
|
|
|
|
|
|
|
chiptune_player.o: chiptune_player.s \
|
2018-11-20 05:14:10 +00:00
|
|
|
mockingboard_a.s \
|
|
|
|
lz4_decode.s \
|
2021-01-05 23:24:09 +00:00
|
|
|
../../asm_routines/keypress_minimal.s \
|
2018-11-20 01:38:13 +00:00
|
|
|
rasterbars.s volume_bars.s interrupt_handler.s qkumba_rts.s \
|
|
|
|
chip_title_uncompressed.inc zp.inc
|
2018-11-19 18:06:19 +00:00
|
|
|
ca65 -o chiptune_player.o chiptune_player.s -l chiptune_player.lst
|
|
|
|
|
|
|
|
CHIPTUNE_UNROLLED: chiptune_unrolled.o
|
2021-01-05 23:24:09 +00:00
|
|
|
ld65 -o CHIPTUNE_UNROLLED chiptune_unrolled.o -C ../../linker_scripts/apple2_c00.inc
|
2018-11-19 18:06:19 +00:00
|
|
|
|
|
|
|
chiptune_unrolled.o: chiptune_player.s \
|
2021-01-05 23:24:09 +00:00
|
|
|
../../asm_routines/mockingboard.s \
|
|
|
|
../../asm_routines/dos33_routines.s \
|
|
|
|
../../asm_routines/lz4_decode.s \
|
|
|
|
../../asm_routines/keypress_minimal.s \
|
2018-11-19 18:06:19 +00:00
|
|
|
rasterbars.s volume_bars.s interrupt_handler_unrolled.s \
|
|
|
|
chip_title.inc zp.inc
|
|
|
|
ca65 -D UNROLLED=1 -o chiptune_unrolled.o chiptune_player.s -l chiptune_unrolled.lst
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *~ TITLE.GR *.o *.lst \
|
2018-11-19 18:37:06 +00:00
|
|
|
CHIPTUNE_PLAYER HELLO
|
2018-11-19 18:06:19 +00:00
|
|
|
|