Skip to main content

tzxtools

This is a collection of command line tools for processing TZX files.

TZX is a common file format for preserving computer tapes of the ZX Spectrum, but also Amstrad CPC, C64 and MSX. tzxtools mainly supports ZX Spectrum TZX files, but raw file operations can be applied on any TZX file. It also supports TSX files, which are mainly used for MSX.

Features

  • Convert your old ZX Spectrum tape recordings into TZX files.
  • List, split, merge, and divide the blocks inside TZX files.
  • Play back TZX files and load them into the real hardware.
  • Extract binary content from TZX blocks.
  • Read hex dumps, disassembled Z80 machine code, or ZX Spectrum BASIC code.
  • Convert ZX Spectrum screens to PNG files.
  • Generate TAP files for ZX Spectrum Next and some emulators.
  • Disassembler also supports all undocumented Z80 instructions and Z80N (ZX Spectrum Next) instructions.
  • Also supports TSX Kansas City Standard blocks.
  • All tools can also read TAP files.

Installation

All the tzxtools are written in Python 3.

pip install tzxtools

On MacOS X, PortAudio needs to be installed before:

brew install portaudio
pip3 install tzxtools

Tools

  • tzxcat - Extracts data from a TZX file. Optionally disassembles, hex dumps or converts blocks to PNG.
  • tzxcleanup - Removes all clutter blocks and leaves a clean TZX file.
  • tzxcut - Cuts blocks from a TZX file.
  • tzxls - Lists the contents of a TZX file.
  • tzxmerge - Concatenates multiple TZX files into one file.
  • tzxplay - Plays back a TZX file for loading into a real ZX Spectrum.
  • tzxsplit - Splits a TZX file into separate programs.
  • tzxtap - Converts a TZX file to TAP file format.
  • tzxwav - Converts WAV file ZX Spectrum tape recordings to TZX files.

See the documentation for how the tools are used.

File Format References

The TZX File Format is specified at World of Spectrum.

The TSX "ID 4B - Kansas City Standard" block is not a part of the specification. A documentation can be found at the makeTSX wiki.

The TAP File Format is described at Sinclair Wiki.

Contribute

License

tzxtools is open source software. The source code is distributed under the terms of GNU General Public License (GPLv3).

Acknowledgements

  • I would like to thank all the people who keep the retro computing scene alive.

Release files for tzxtools 1.9.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tzxtools 1.9.5
File Size Uploaded
tzxtools-1.9.5.tar.gz 38.0 kB Details

Release files / tzxtools-1.9.5.tar.gz

Download URL tzxtools-1.9.5.tar.gz
Size 38.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0860c2479984ce70d38b39a8ae6272d23f8df54dcfde05a80ffa98289ae6768b
BLAKE2b-256 checksum
How to use checksums
0e87a2c93e54fa1f77c2a9ad9484c8a6564ca8fb6db6013e184c379bde11b098
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release history Release notifications | RSS feed

This release

1.9.5 This release

1 release file

1.9.4

1 release file

1.9.3

1 release file

1.9.2

1 release file

1.9.1

1 release file

1.9.0

1 release file

1.8.0

1 release file

1.7.0

1 release file

1.6.0

1 release file

1.5.0

1 release file

1.4.0

1 release file

1.3.0

1 release file

1.2.0

1 release file

1.1.0

1 release file

1.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page