01-18-2021, 03:36 PM
(01-18-2021, 12:30 AM)patters Wrote: Thanks, if I also use -o I can control the Spectrum filename that's inside the compiler's TAP file, otherwise it has a .tap suffix. I can accomplish what I originally set out to do in this one-liner in fact which is ideal, given how frequently I build the code. I'm on Mac OS so no copy /b for me.
Code:./zxbc.py -t -O3 ../arti14.bas -o arti.bin && cat ../loader+scr.tap ./arti.bin > artillery.tap
Ah, great you're in a *nix system.
That should work, but you needn't to name your output file arti.bin. -t creates a .tap regardless of the -o name suffix.
Anyway, I'm thinking on make the compiler to create a custom loader for all the binaries, but there's been a (rather long) discussion on whether it's a task on the side of the compiler or of an external tool (i.e. a linker which I'm heavily working on).
Z88DK (C compiler) for example delegates this task to an external tool and makes sense...
So to sum up: Yes, this process need to be improved, but with an external tool.