Skip to main content

r8format - Retrocomputing 8-bit file format manipulation tools

This repository contains tools (mainly written in Python) and Python libraries for manipulating and converting some common file formats used on old 8-bit computers.

Installation

This is a PyPA package than can be built/installed with any compliant tool, such as Pip. We suggest you install it in a virtualenv, but this isn't necessary. Typical methods of installation include:

#   Install the most recent release from PyPI
pip install r8format        # https://pypi.org/project/r8format/

#   Install the latest version directly from GitHub.
pip install git+https://github.com/mc68-net/r8format.git

#   Install local copy of the repo in editable form.
#   You almost certainly want to be using a virtual environment for this.
pip install -q -e ./r8format

On Linux, the top-level ./Test script in the repo will run both the unit and functional (command-line) tests. This has been tested only under Linux, but will likely work under Windows as well.

If you have a need to run this on a platform that isn't working, please contact the authors (below) for support.

Programs

bastok

bastok is a system for de-tokenising and re-tokenising MS-BASIC programs; it currently supports MSX-BASIC 2.0. Its special powers include user-configurable conversion between MSX character sets/encodings and Unicode and an "expanded" Unicode file format that allows better formatting and extra comments while being able to compress this back down to a format that uses minimal space in microcomputer memory. See doc/bastok.md for full documentation.

The command-line programs include:

  • detok: De-tokenise a BASIC program to Unicode.
  • basdump: Show a hex dump of tokenised MS-BASIC programs that formats the information to make clear the line pointer, line number and tokenised text information.
  • blines: Produce single BASIC lines from ASCII/Unicode BASIC source that may split lines using detok's expanded format.

Additional tools for developers under bin/ in the source repo include:

  • bddiff: Use meld or another diff tool to show the differences between the basdump output of two tokenised MS-BASIC programs.
  • msxemu: Start an OpenMSX emulator instance.

cmtconv

cmtconv converts WAV files of cassette tape saves to .cas and other data file formats, and vice versa. It also understands higher-level formats such as BASIC and machine-language files. See doc/cmtconv.md for full documentation.

The command line programs include:

  • cmtconv: Conversion program. Use -h for help.
  • analyze-cmt: Analysis of (usually unknown) CMT save formats in WAV files.

Other Programs

Additional command-line programs include:

  • msx-dasm: Disassemble an MSX BSAVE-format program using z80dasm.

Python Libraries

The following top-level modules are under src/:

  • binary: Object file and assembler symbol file formats.
  • bastok: MS-BASIC de- and re-tokenisation.
  • cmtconv: Microcomputer CMT (audio cassette tape) image handling.

Support

Contact Curt Sampson (usually known as 'cjs') if you have questions, comments, feature requests, or just want help using this. The following are good places to get in touch, more or less in order of preference:

  • The "The MSX2 Channel" server on Discord, in the #development group. (Feel free to start a thread if the question is not trivially answered.)
  • @cjs_cynic on Telegram
  • 0cjs on Discord.
  • Email to cjs@cynic.net, but a reply from that might take days.

Authors

Metadata

Release files for r8format 0.0.9

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

Source distribution (sdist)

Source distribution for r8format 0.0.9
File Size Uploaded
r8format-0.0.9.tar.gz 68.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for r8format 0.0.9
File Interpreter ABI Platform
r8format-0.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 149.9 kB

Release files / r8format-0.0.9.tar.gz

Download URL r8format-0.0.9.tar.gz
Size 68.8 kB
Tags Source
SHA-256 checksum
How to use checksums
55fbb6624bf24171ea42737ff3b54879a0c99fabf8e5db551c24cc829cac63db
BLAKE2b-256 checksum
How to use checksums
f36e47ad074e7ff1c79e7e565004f5550ce6d057e14f364fa34b4c4539e5399f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.2

Release files / r8format-0.0.9-py3-none-any.whl

Download URL r8format-0.0.9-py3-none-any.whl
Size 81.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2fe8996f6d6db50eeb43addf22fea0690159b240dd810a8b878c58569c9f7113
BLAKE2b-256 checksum
How to use checksums
5b03c95c41de49658e302af053ac25d9021e72de1e416d40578ebffa7e2b9289
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.2

Release history Release notifications | RSS feed

This release

0.0.9 This release

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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