Skip to main content

A package to support development with classic Amiga m68k systems

Project description

amitools - various AmigaOS tools for other platforms

Introduction

amitools is a collection of Python 3 tools that I've written to work with Amiga OS binaries and files on macOS and all other *nix-like platforms supporting Python. Windows might work as well, but is heavily untested. However, patches are welcome.

I focus with my tools on classic Amiga setups, i.e. a 680x0 based system with Amiga OS 1.x - 3.x running on it. However, this is an open project, so you can provide other Amiga support, too.

The tools are mostly developer-oriented, so a background in Amiga programming will be very helpful.

Prerequisites

  • Python >= 3.9
  • pip3

Optional Packages

Installation

Stable/Release Version

If you only need the tools without vamos then you can install the pure Python version:

pip3 install amitools

If you want to run vamos then you need the CPU emulator from the machine68k package and you can install this dependency with:

pip3 install 'amitools[vamos]'

Note:

  • on Linux/macOS may use sudo to install for all users
  • the version may be a bit outdated. If you need recent changes use the current version.

Current Version from GitHub

If you wan to run vamos then first install the CPU emulator machine68k:

pip3 install -U git+https://github.com/cnvogelg/machine68k.git

Then install amitools directly from the git repository:

pip3 install -U git+https://github.com/cnvogelg/amitools.git

Note:

  • This will install the latest version found in the github repository.
  • You find the latest features but it may also be unstable from time to time.
  • Repeat this command to update to the latest version.

Developers

  • Follow this route if you want to hack around with the amitools codebase
  • Clone the Git repo: amitools@git
  • Ensure you have Cython and machine68k installed:
pip3 install cython machine68k
  • Enter the directory of the cloned repo and install via pip:
pip3 install -U -e .

This install amitools in your current Python environment but takes the source files still from this repository. So you can change the code there and directly test the tools.

Contents

The new Documentation of amitools is hosted on readthedocs

Tools

  • vamos V)irtual AM)iga OS

    vamos allows you to run command line (CLI) Amiga programs on your host Mac or PC. vamos is an API level Amiga OS Emulator that replaces exec and dos calls with its own implementation and maps all file access to your local file system.

    Note: vamos requires the package machine68k installed first!

  • xdftool

    Create and modify ADF or HDF disk image files.

  • xdfscan

    Scan directory trees for ADF or HDF disk image files and verify the contents.

  • rdbtool

    Create or modify disk images with Rigid Disk Block (RDB)

  • romtool

    A tool to inspect, dissect, and build Amiga Kickstart ROM images to be used with emulators, run with soft kickers or burned into flash ROMs.

  • hunktool

    The hunktool uses amitools' hunk library to load a hunk-based amiga binary. Currently, its main purpose is to display the contents of the files in various formats.

    You can load hunk-based binaries, libraries, and object files. Even overlayed binary files are supported.

  • typetool

    This little tool is a companion for vamos. It allows you to dump and get further information on the API C structure of AmigaOS used in vamos.

  • fdtool

    This tool reads the fd (function description) files Commodore supplied for all of their libraries and dumps their contents in different formats including a code structure used in vamos.

    You can query functions and find their jump table offset.

Python Libraries

  • Hunk library amitools.binfmt.hunk

    This library allows to read Amiga OS loadSeg()able binaries and represent them in a python structure. You could query all items found there, retrieve the code, data, and bss segments and even relocate them to target addresses

  • ELF library amitools.binfmt.elf

    This library allows to read a subset of the ELF format mainly used in AROS m68k.

  • .fd File Parser amitools.fd

    Parse function descriptions shipped by Commodore to describe the Amiga APIs

  • OFS and FFS File System Tools amitools.fs

    Create or modify Amiga's OFS and FFS file system structures

  • File Scanners amitools.scan

    I've written some scanners that walk through file trees and retrieve the file data for further processing. I support file trees on the file system, in lha archives or in adf/hdf disk images

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

amitools_amifuse-0.8.0.post2.tar.gz (3.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

amitools_amifuse-0.8.0.post2-py3-none-any.whl (741.8 kB view details)

Uploaded Python 3

File details

Details for the file amitools_amifuse-0.8.0.post2.tar.gz.

File metadata

  • Download URL: amitools_amifuse-0.8.0.post2.tar.gz
  • Upload date:
  • Size: 3.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for amitools_amifuse-0.8.0.post2.tar.gz
Algorithm Hash digest
SHA256 e4a482ede21e641534b5b447bfebd4315c4127844e8e27684d4fd0e55f0402be
MD5 e935ab0e1fb5b6e1f27cd396325dca2c
BLAKE2b-256 9b7004b5e29562951c2ed87893248eb9007165ff0b8ef1e7dfe7abb9a756d893

See more details on using hashes here.

Provenance

The following attestation bundles were made for amitools_amifuse-0.8.0.post2.tar.gz:

Publisher: publish-to-pypi.yml on reinauer/amitools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file amitools_amifuse-0.8.0.post2-py3-none-any.whl.

File metadata

File hashes

Hashes for amitools_amifuse-0.8.0.post2-py3-none-any.whl
Algorithm Hash digest
SHA256 7feff2b7848eb6f87eaf98221cb2a9e12a2fd8413b1d867eafa487007c3ee78e
MD5 4dfee4fad8cfe63b231e29103435a6dd
BLAKE2b-256 bf40f9b6c68f60523ef5e3c73ef127de4a728a450c27c4d58b19d6574e0ab5d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for amitools_amifuse-0.8.0.post2-py3-none-any.whl:

Publisher: publish-to-pypi.yml on reinauer/amitools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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