Splits a TZX file into its different programs.
This tool is useful to automatically split up a single TZX file of a mixed tape with different programs.
tzxsplit searches for a ZX Spectrum "Program" block, and then extracts the program itself and all subsequent "bytes", "character array", "number array" and headerless blocks into a new TZX file, up to the next "Program" block.
Each program and the subsequent data blocks are written into a separate TZX file, which is named like the program itself. A number is added to the file name, in order to avoid file name collisions.
If the tape file should not start with a "Program", all blocks up to the first Program are stored into a TZX file called "preamble.tzx".
tzxsplit [-h] [-d TARGET] [-s] [file]
file: TZX file to read from, or
stdinif not given.
--dir: Target directory of the generated TZX files. If omitted, the current directory is used.
--skip: Instead of writing a preamble file, just skip all blocks up to the first program.
--single: Split at every loadable file instead of splitting at every program.
--help: Show help message and exit.
tape.tzx and generate TZX files for all the programs (and the subsequent data blocks) found in it.