Skip to main content

machine68k - m68k Emulator and Machine Binding for Python

Introduction

machine68k is a Python package that offers a system binding for the Musashi Motorola 68000 CPU emulator with memory binding and support for ALine opcode exception traps.

The package is currently used by the amitools project and supplies the CPU emulation for vamos.

Prerequisites

  • Python >= 3.11
  • pip3

Optional Packages

  • cython: (version >= 3.0.0) required to rebuild the native module

Installation

Stable/Release Version

pip3 install machine68k

Note:

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

Current Version from GitHub

Ensure you have Cython installed:

pip3 install cython

Then install machine68k directly from the git repository:

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

Or if you have a local clone of the repository:

pip3 install .

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 codebase
  • Clone the Git repo: machine68k@git
  • Ensure you have Cython installed:
pip3 install cython
  • Enter the directory of the cloned repo and install via pip:
pip3 install -U -e .

This install machine68k 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 machine.

Using uv

As an alternative, install uv, then create an environment and install the development dependencies and package:

uv python install "$(cat .python-version)"
uv venv
uv pip install -r requirements-dev.txt
uv pip install -e .

The Makefile targets use uv to run the tools. For example, run make test to run the tests, make format to format Python files, make fix to apply Ruff lint fixes, make fix-unsafe to also apply unsafe Ruff fixes (which may change code behavior), and make check to check formatting and lint.

Metadata

Release files for machine68k 0.5.0

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

Source distribution (sdist)

Source distribution for machine68k 0.5.0
File Size Uploaded Provenance Actions
machine68k-0.5.0.tar.gz 587.9 kB Without provenance Details for machine68k-0.5.0.tar.gz

Release files / machine68k-0.5.0.tar.gz

Download URL machine68k-0.5.0.tar.gz
Size 587.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7a702a86afc735b7069e183a6f52d57b9e203fa2260b926562721b76b7119050
BLAKE2b-256 checksum
How to use checksums
6dcb509e311997b657ec8db427a5274dd071e0ad061b9e5ee97c2e2e0b317e36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for machine68k 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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