From 79f866505582c4e8e6e7ead838bdb7bdc3c31396 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sun, 14 Nov 2021 13:53:38 +0000 Subject: [PATCH] Add machinery for building a working `.tap' file. I maintain the ZX BASIC loader program using FUSE, so, alas, the `spectrum-loader.tap' file is the `preferred' form for modification. I'd like something less awful. --- .gitignore | 1 + Makefile | 8 +++++++- spectrum-loader.tap | Bin 0 -> 71 bytes tapify | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 spectrum-loader.tap create mode 100755 tapify diff --git a/.gitignore b/.gitignore index a89285e..6477f1c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ *.img +/spectrum-fizzbuzz.tap diff --git a/Makefile b/Makefile index eeaf9d2..9bef433 100644 --- a/Makefile +++ b/Makefile @@ -6,10 +6,16 @@ clean:: TARGETS = CLEANFILES = $(TARGETS) -TARGETS += spectrum-fb.img +CLEANFILES += spectrum-fb.img spectrum-fb.img: fizzbuzz.s z80asm -o $@ $^ +TARGETS += spectrum-fizzbuzz.tap +spectrum-fizzbuzz.tap: tapify spectrum-loader.tap spectrum-fb.img + { cat spectrum-loader.tap; \ + ./tapify 3 fb 0x7000 0x8000 $@.new && mv $@.new $@ + all: $(TARGETS) clean::; rm -f $(CLEANFILES) diff --git a/spectrum-loader.tap b/spectrum-loader.tap new file mode 100644 index 0000000000000000000000000000000000000000..3ea384f3f58b0b7bcffc57d7794c7d0bd76ec22c GIT binary patch literal 71 zcmWe;U|>kgtg1>Xt*TN`&|~0Y&|?rXVEE6##mn&5$imFrh!3cufPt4mgq`8NQd*MI PdR_)OK8BwMkR{6iAL