Skip to main content

Retrocomputing 8-bit file format manipulation tools

Project description

r8format - Tools for Manipulating and Converting Retro-8-bit File Formats

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 pylib:

  • binary: Object file and assembler symbol file formats.
  • bastok: MS-BASIC de- and re-tokenisation.
  • cmtconv: Microcomputer CMT (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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

r8format-0.0.7.tar.gz (67.5 kB view details)

Uploaded Source

Built Distribution

r8format-0.0.7-py3-none-any.whl (79.4 kB view details)

Uploaded Python 3

File details

Details for the file r8format-0.0.7.tar.gz.

File metadata

  • Download URL: r8format-0.0.7.tar.gz
  • Upload date:
  • Size: 67.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.2

File hashes

Hashes for r8format-0.0.7.tar.gz
Algorithm Hash digest
SHA256 8ebc966aca5a5592708f773741966697874f039c2acedb4349b7f99fc6464a3b
MD5 d93e560e2b2ae4fa8a3f58978a3def77
BLAKE2b-256 676324eda00ce145d05dcd9aae6318b192e270d96b9516e931ad0b4424daef12

See more details on using hashes here.

File details

Details for the file r8format-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: r8format-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 79.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.2

File hashes

Hashes for r8format-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a9a5a6e6194982bbaa3839a94113f5785beaaf2480099d97a44e1d178accad49
MD5 7637fb05a28f5c5f994e3dbffb2c18d6
BLAKE2b-256 ffe6e3425e4c63b1571a3ee8c21b0df087b888bc371591547fa5d934162810d4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page