2022-01-25 19:16:08 +00:00
|
|
|
include ../../../Makefile.inc
|
|
|
|
|
|
|
|
DOS33 = ../../../utils/dos33fs-utils/dos33
|
|
|
|
TOKENIZE = ../../../utils/asoft_basic-utils/tokenize_asoft
|
|
|
|
LINKERSCRIPTS = ../../../linker_scripts
|
|
|
|
EMPTYDISK = ../../../empty_disk/empty.dsk
|
|
|
|
|
2022-01-26 05:06:20 +00:00
|
|
|
all: sines.dsk
|
2022-01-25 19:16:08 +00:00
|
|
|
|
2022-01-26 05:06:20 +00:00
|
|
|
sines.dsk: HELLO APPROX_SINE THICK_SINE THICK_COS TABLE_SINE ROM_SINE \
|
2022-02-02 05:20:56 +00:00
|
|
|
OOPS_COS OOPS2_COS OOPS3_COS OOPS4_COS ROTATE THICK
|
2022-01-26 05:06:20 +00:00
|
|
|
cp $(EMPTYDISK) sines.dsk
|
|
|
|
$(DOS33) -y sines.dsk SAVE A HELLO
|
|
|
|
$(DOS33) -y sines.dsk BSAVE -a 0xc00 APPROX_SINE
|
|
|
|
$(DOS33) -y sines.dsk BSAVE -a 0xc00 TABLE_SINE
|
|
|
|
$(DOS33) -y sines.dsk BSAVE -a 0xc00 ROM_SINE
|
|
|
|
$(DOS33) -y sines.dsk BSAVE -a 0xc00 THICK_SINE
|
|
|
|
$(DOS33) -y sines.dsk BSAVE -a 0xc00 THICK_COS
|
2022-02-28 04:53:06 +00:00
|
|
|
$(DOS33) -y sines.dsk BSAVE -a 0x3f5 OOPS_COS
|
2022-01-26 05:06:20 +00:00
|
|
|
$(DOS33) -y sines.dsk BSAVE -a 0xc00 OOPS2_COS
|
|
|
|
$(DOS33) -y sines.dsk BSAVE -a 0x3f5 OOPS3_COS
|
|
|
|
$(DOS33) -y sines.dsk BSAVE -a 0x3f5 OOPS4_COS
|
|
|
|
$(DOS33) -y sines.dsk BSAVE -a 0x3f5 ROTATE
|
2022-02-02 05:20:56 +00:00
|
|
|
$(DOS33) -y sines.dsk BSAVE -a 0xc00 THICK
|
2022-01-25 19:16:08 +00:00
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
HELLO: hello.bas
|
|
|
|
$(TOKENIZE) < hello.bas > HELLO
|
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
APPROX_SINE: approx_sine.o
|
|
|
|
ld65 -o APPROX_SINE approx_sine.o -C $(LINKERSCRIPTS)/apple2_c00.inc
|
|
|
|
|
|
|
|
approx_sine.o: approx_sine.s
|
|
|
|
ca65 -o approx_sine.o approx_sine.s -l approx_sine.lst
|
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
THICK_SINE: thick_sine.o
|
|
|
|
ld65 -o THICK_SINE thick_sine.o -C $(LINKERSCRIPTS)/apple2_c00.inc
|
|
|
|
|
|
|
|
thick_sine.o: thick_sine.s
|
|
|
|
ca65 -o thick_sine.o thick_sine.s -l thick_sine.lst
|
|
|
|
|
|
|
|
###
|
|
|
|
|
2022-01-25 20:44:27 +00:00
|
|
|
THICK_COS: thick_cos.o
|
|
|
|
ld65 -o THICK_COS thick_cos.o -C $(LINKERSCRIPTS)/apple2_c00.inc
|
|
|
|
|
|
|
|
thick_cos.o: thick_cos.s
|
|
|
|
ca65 -o thick_cos.o thick_cos.s -l thick_cos.lst
|
|
|
|
|
|
|
|
|
2022-01-25 21:42:56 +00:00
|
|
|
###
|
|
|
|
|
2022-02-02 05:20:56 +00:00
|
|
|
THICK: thick.o
|
|
|
|
ld65 -o THICK thick.o -C $(LINKERSCRIPTS)/apple2_c00.inc
|
|
|
|
|
|
|
|
thick.o: thick.s
|
|
|
|
ca65 -o thick.o thick.s -l thick.lst
|
|
|
|
|
|
|
|
###
|
|
|
|
|
2022-01-25 21:42:56 +00:00
|
|
|
OOPS_COS: oops_cos.o
|
2022-02-28 04:53:06 +00:00
|
|
|
ld65 -o OOPS_COS oops_cos.o -C $(LINKERSCRIPTS)/apple2_3f5.inc
|
2022-01-25 21:42:56 +00:00
|
|
|
|
|
|
|
oops_cos.o: oops_cos.s
|
|
|
|
ca65 -o oops_cos.o oops_cos.s -l oops_cos.lst
|
|
|
|
|
2022-02-02 05:20:56 +00:00
|
|
|
|
2022-01-25 21:42:56 +00:00
|
|
|
###
|
|
|
|
|
|
|
|
OOPS2_COS: oops2_cos.o
|
|
|
|
ld65 -o OOPS2_COS oops2_cos.o -C $(LINKERSCRIPTS)/apple2_c00.inc
|
|
|
|
|
|
|
|
oops2_cos.o: oops2_cos.s
|
|
|
|
ca65 -o oops2_cos.o oops2_cos.s -l oops2_cos.lst
|
|
|
|
|
2022-01-25 22:03:41 +00:00
|
|
|
###
|
|
|
|
|
|
|
|
OOPS3_COS: oops3_cos.o
|
2022-01-26 02:28:46 +00:00
|
|
|
ld65 -o OOPS3_COS oops3_cos.o -C $(LINKERSCRIPTS)/apple2_3f5.inc
|
2022-01-25 22:03:41 +00:00
|
|
|
|
|
|
|
oops3_cos.o: oops3_cos.s
|
|
|
|
ca65 -o oops3_cos.o oops3_cos.s -l oops3_cos.lst
|
|
|
|
|
|
|
|
###
|
2022-01-25 21:42:56 +00:00
|
|
|
|
2022-01-25 22:03:41 +00:00
|
|
|
OOPS4_COS: oops4_cos.o
|
2022-01-26 02:28:46 +00:00
|
|
|
ld65 -o OOPS4_COS oops4_cos.o -C $(LINKERSCRIPTS)/apple2_3f5.inc
|
2022-01-25 21:42:56 +00:00
|
|
|
|
2022-01-25 22:03:41 +00:00
|
|
|
oops4_cos.o: oops4_cos.s
|
|
|
|
ca65 -o oops4_cos.o oops4_cos.s -l oops4_cos.lst
|
2022-01-25 21:42:56 +00:00
|
|
|
|
2022-01-25 20:44:27 +00:00
|
|
|
###
|
|
|
|
|
2022-01-26 02:28:46 +00:00
|
|
|
ROTATE: rotate.o
|
|
|
|
ld65 -o ROTATE rotate.o -C $(LINKERSCRIPTS)/apple2_3f5.inc
|
|
|
|
|
|
|
|
rotate.o: rotate.s
|
|
|
|
ca65 -o rotate.o rotate.s -l rotate.lst
|
|
|
|
|
|
|
|
###
|
|
|
|
|
2022-01-25 20:44:27 +00:00
|
|
|
TABLE_SINE: table_sine.o
|
|
|
|
ld65 -o TABLE_SINE table_sine.o -C $(LINKERSCRIPTS)/apple2_c00.inc
|
|
|
|
|
|
|
|
table_sine.o: table_sine.s
|
|
|
|
ca65 -o table_sine.o table_sine.s -l table_sine.lst
|
|
|
|
|
|
|
|
###
|
|
|
|
|
2022-01-25 19:16:08 +00:00
|
|
|
ROM_SINE: rom_sine.o
|
|
|
|
ld65 -o ROM_SINE rom_sine.o -C $(LINKERSCRIPTS)/apple2_c00.inc
|
|
|
|
|
|
|
|
rom_sine.o: rom_sine.s
|
|
|
|
ca65 -o rom_sine.o rom_sine.s -l rom_sine.lst
|
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
clean:
|
2022-02-02 05:20:56 +00:00
|
|
|
rm -f *~ *.o *.lst THICK_SINE THICK_COS THICK \
|
2022-01-25 22:03:41 +00:00
|
|
|
TABLE_SINE ROM_SINE APPROX_SINE \
|
2022-01-26 02:28:46 +00:00
|
|
|
OOPS_COS OOPS2_COS OOPS3_COS OOPS4_COS ROTATE
|
2022-01-25 19:16:08 +00:00
|
|
|
|