2023-03-06 01:54:41 +00:00
|
|
|
include ../../Makefile.inc
|
|
|
|
|
|
|
|
ZX02 = ~/research/6502_compression/zx02.git/build/zx02
|
|
|
|
PNG_TO_HGR = ../../utils/hgr-utils/png2hgr
|
|
|
|
LINKER_SCRIPTS = ../../linker_scripts
|
|
|
|
DOS33 = ../../utils/dos33fs-utils/dos33
|
|
|
|
EMPTY_DISK = ../../empty_disk/empty.dsk
|
|
|
|
TOKENIZE = ../../utils/asoft_basic-utils/tokenize_asoft
|
|
|
|
|
|
|
|
all: sb.dsk
|
|
|
|
|
|
|
|
####
|
|
|
|
|
2023-03-07 05:28:45 +00:00
|
|
|
sb.dsk: HELLO SB DUCK_POND
|
2023-03-06 01:54:41 +00:00
|
|
|
cp $(EMPTY_DISK) sb.dsk
|
|
|
|
$(DOS33) -y sb.dsk SAVE A HELLO
|
|
|
|
$(DOS33) -y sb.dsk BSAVE -a 0x0c00 SB
|
2023-03-07 05:28:45 +00:00
|
|
|
$(DOS33) -y sb.dsk BSAVE -a 0x1000 DUCK_POND
|
2023-03-06 01:54:41 +00:00
|
|
|
|
|
|
|
####
|
|
|
|
|
|
|
|
SB: sb.o
|
|
|
|
ld65 -o SB sb.o -C $(LINKER_SCRIPTS)/apple2_c00.inc
|
|
|
|
|
|
|
|
sb.o: sb.s zx02_optim.s \
|
|
|
|
zp.inc hardware.inc
|
|
|
|
ca65 -o sb.o sb.s -l sb.lst
|
|
|
|
|
|
|
|
####
|
|
|
|
|
2023-03-07 05:28:45 +00:00
|
|
|
DUCK_POND: duck_pond.o
|
|
|
|
ld65 -o DUCK_POND duck_pond.o -C $(LINKER_SCRIPTS)/apple2_1000.inc
|
|
|
|
|
|
|
|
duck_pond.o: duck_pond.s zx02_optim.s \
|
|
|
|
zp.inc hardware.inc
|
|
|
|
ca65 -o duck_pond.o duck_pond.s -l duck_pond.lst
|
|
|
|
|
|
|
|
|
|
|
|
####
|
|
|
|
|
2023-03-06 01:54:41 +00:00
|
|
|
HELLO: hello.bas
|
|
|
|
$(TOKENIZE) < hello.bas > HELLO
|
|
|
|
|
|
|
|
####
|
|
|
|
|
|
|
|
clean:
|
2023-03-07 05:28:45 +00:00
|
|
|
rm -f *.lst *.o SB DUCK_POND *~
|