tzxtools

tzxsplit

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 blocks up to the next “Program” block.

Each program and the subsequent 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”.

See also tzxcut.

This tool also accepts a TAP file. It is converted to TZX format internally.

Usage

tzxsplit [-h] [-d TARGET] [-s] [file]

Example

tzxsplit tape.tzx

Read tape.tzx and generate TZX files for all the programs (and the subsequent data blocks) found in it.