Simplify build by adapting checksum program

This now prepends length bytes as well as adding checksum
This commit is contained in:
2024-11-11 10:17:34 +00:00
parent a6698e3ead
commit 1c7ab48330
7 changed files with 89 additions and 63 deletions

View File

@ -1,33 +1,28 @@
program.tap: program.asm headerbincs body.tap
pasmo program.asm program.tap
program.tap: header.block body.block
cat header.block body.block > program.tap
headerbincs: headerbin ac
cp headerbin headerbincs
./ac headerbincs
header.block: header ttttt
./ttttt header
headerbin: header.tap
dd if=header.tap of=headerbin bs=1 count=18
header: header.asm body.block
pasmo header.asm headerlong
dd if=headerlong of=header bs=18 count=1
rm -f headerlong
header.tap: header.asm body.tap
pasmo header.asm header.tap
body.block: body ttttt
./ttttt body
body.tap: body.asm bodybincs
pasmo body.asm body.tap
body: remload.asm code.asm
pasmo remload.asm body
bodybincs: bodybin ac
cp bodybin bodybincs
./ac bodybincs
bodybin: remload.asm code.asm
pasmo remload.asm bodybin
ac: append_checksum.c
cc append_checksum.c -o ac
ttttt: ttttt.c
cc ttttt.c -o ttttt
clean:
rm -f *.tap
rm -f *bin
rm -f *bincs
rm -f ac
rm -f *.block
rm -f body
rm -f header
rm -f ttttt
.PHONY: clean