Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom TAP loader with SCREEN$
#5
(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. Smile
Reply


Messages In This Thread
Custom TAP loader with SCREEN$ - by patters - 01-17-2021, 06:24 PM
RE: Custom TAP loader with SCREEN$ - by boriel - 01-17-2021, 09:09 PM
RE: Custom TAP loader with SCREEN$ - by boriel - 01-17-2021, 11:08 PM
RE: Custom TAP loader with SCREEN$ - by patters - 01-18-2021, 12:30 AM
RE: Custom TAP loader with SCREEN$ - by boriel - 01-18-2021, 03:36 PM
RE: Custom TAP loader with SCREEN$ - by patters - 01-18-2021, 04:06 PM
RE: Custom TAP loader with SCREEN$ - by boriel - 01-18-2021, 05:47 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)