Skip to main content

jennings

A py65-compatible 6502/6510 MPU, assembler, and disassembler with first-class support for all 105 documented NMOS 6510 illegal opcodes. Drop-in for py65: change import py65… to import jennings….

Where py65 stubs the illegals (inst_not_implemented — a 0-cycle skip), jennings executes them byte- and cycle-exact via deity-informant's hardware-validated lift + PcodeVM engine, and its assembler/disassembler decode them as real mnemonics instead of ???.

Install

pip install jennings          # pulls deity-informant (pure-Python engine)
pip install jennings[dev]     # + test/lint tooling (pytest, black, pylint, py65)

Use

from jennings.devices.mpu6502 import MPU
from jennings.memory import ObservableMemory
from jennings.disassembler import Disassembler
from jennings.assembler import Assembler

mpu = MPU(memory=ObservableMemory())     # same API as py65.devices.mpu6502.MPU
mpu.memory[0:2] = [0xAF, 0x10]           # LAX $10 — an illegal py65 cannot run
mpu.step()                               # a, x <- mem[$10]; cycle-exact

Assembler(MPU()).assemble("SLO $20")     # [0x07, 0x20]
Disassembler(MPU()).instruction_at(pc)   # (len, "SLO $20")

from jennings import dataflow
dataflow.flow(mem, pc, loads=[0x1236])   # ADC $1234,X: {"A": {"A", "C", "X", 0x1236}, ...}

jennings.superopt finds the minimal equivalent of straight-line code for a given spec (live-in variables, tables and parameters, live-out locations): z3 semantics from the same p-code, an enumerative search on test vectors (numpy, or CUDA with pip install jennings[cuda]), and a z3 proof of the result. See docs/superopt.md.

jennings.dataflow.flow reads each instruction's output-to-input dependencies (registers, flags, memory bytes, a branch's condition) off the same lifted pcode the MPU executes, given the addresses an observed run accessed.

jennings.coverage records 6502 code coverage (executed bytes, branch directions, data accesses, dynamic edges), reports it through coverage.py, derives self-modifying-code and interrupt-vector obligations, explains one-way branches, and records per-test coverage from pytest. See docs/coverage.md.

Native core

Wheels carry a Rust 6510 core (jennings._core) whose opcode semantics are generated from deity-informant's lifter. An MPU over a NativeMemory runs it; run_until, run_to_rts and run_to_rts_until release the GIL, so independent tunes run in parallel threads. An sdist install keeps the pure-Python engine. See docs/native.md.

from jennings.memory import NativeMemory
mem = NativeMemory(image)                 # 64 KiB, banked 4 KiB pages, watch sets
mem.io = True; mem.raster_model(False)    # $D011/$D012 follow the PAL beam natively
mpu = MPU(memory=mem)                     # mpu.native is True
mpu.run_to_rts(play, 0, 200_000)

Compatibility

Mirrors the py65 API surface used in practice: devices.mpu6502.MPU (.step/.reset/.irq/.nmi, a/x/y/sp/p/pc/memory/processorCycles, ByteAt/WordAt, disassemble/instruct/cycletime/extracycles), memory.ObservableMemory, disassembler.Disassembler, assembler.Assembler, utils.addressing.AddressParser.

Every legal opcode is validated byte-, flag-, and cycle-exact against py65 in CI; the illegals are validated by NMS decomposition and (via the engine) byte-exact against sidplayfp. See docs/design.md, docs/illegal-opcodes.md, and docs/migrating-from-py65.md.

Limitations

No BCD (decimal-mode ADC/SBC), matching the deity-informant engine and the C64 target domain (playroutines run CLD). py65.monitor is not reimplemented.

Metadata

Release files for jennings 0.9.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 jennings 0.9.0
File Size Uploaded Provenance Actions
jennings-0.9.0.tar.gz 100.0 kB With provenance Details for jennings-0.9.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for jennings 0.9.0
File Interpreter ABI Platform Actions
jennings-0.9.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.11 abi3 Linux glibc 2.17+ x86-64 Details for jennings-0.9.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
jennings-0.9.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.11 abi3 Linux glibc 2.17+ ARM64 Details for jennings-0.9.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
jennings-0.9.0-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for jennings-0.9.0-cp311-abi3-macosx_11_0_arm64.whl

Total release size: 1.2 MB

Release files / jennings-0.9.0.tar.gz

Download URL jennings-0.9.0.tar.gz
Size 100.0 kB
Tags Source
SHA-256 checksum
How to use checksums
490f3a3717e080332b231b796c0426563b63bb9071807225e2cdbc85bed28d73
BLAKE2b-256 checksum
How to use checksums
29543c7a21fdf9725cbaa9e41652c15d1cc926a3648d633128ad85453ac32d37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Release files / jennings-0.9.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL jennings-0.9.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 386.2 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
44ae3ad316e534a2939808c0d8311e756fd0372fac2fd94a73cefa0fd775faa5
BLAKE2b-256 checksum
How to use checksums
483746bba3ae2e8d1de00d2a6f05417a730237fb8b0ca408bddb51c47b554d09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Release files / jennings-0.9.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL jennings-0.9.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 381.3 kB
Tags CPython 3.11 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
4f6221f013aec64da3feedeef3b866b56ffcff1ad8a0b1a641f0066ab9412bdc
BLAKE2b-256 checksum
How to use checksums
a17579ea7921cdfc8b3b3e96369166b8d9a88d3a9f616b756d2fc900eb50eba1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Release files / jennings-0.9.0-cp311-abi3-macosx_11_0_arm64.whl

Download URL jennings-0.9.0-cp311-abi3-macosx_11_0_arm64.whl
Size 362.5 kB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
766112221fdf6b4af76da8d02f0ee2ad20c1ca51fd20c9e8ea8fa8c0eea983fd
BLAKE2b-256 checksum
How to use checksums
28a20b6f28d442fe6ea7c2a0bb8dbe9316277328abb53fee1f41e6c0c6a53f5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Security for jennings 0.9.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.

Full provenance

All 4 files in this release have been uploaded with provenance metadata.

Select from 4 files

Attestation for jennings-0.9.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.9.0 This release

4 release files Full provenance

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