tzxtools

tzxcut

Cuts out blocks from a TZX file into a new TZX file.

This tool is useful to split the copy of a mixed tape into a separate TZX file for one of the programs.

See also tzxsplit.

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

Usage

tzxcut [-h] [-i SOURCE] [-o TARGET] [-v] [blocks [blocks ...]]

Blocks can be addressed in a single number or in a range:

Remember that blocks are counted starting from zero.

Negative block numbers are counted backwards from the last block:

If you use negative block numbers, it is wise to place a -- at the command line before the block ranges, so negative block numbers are not interpreted as options (see example below).

Example

tzxcut -i games.tzx -o first-game.tzx 0:5 7

Copies the blocks 0 to 5 (inclusive) and block 7 of games.tzx into a new file first-game.tzx.

tzxcut -i games.tzx -o first-game.tzx -- -5 -3:

Copies the fifth to last and the three last blocks of games.tzx into a new file first-game.tzx.