# a7800-rust **Lineage:** a7800-python → **a7800-rust** · fixes start in a7800-python and flow down by merges · [family charter](https://github.com/alewman/emulator-lineage/blob/main/docs/charter.md) The Atari 7800 ProSystem board in Rust: a line-by-line transcription of [a7800-python](https://github.com/alewman/a7800-python) at **`d6b220d`**, proven identical to it, slice by slice, by the lockstep gate (`scripts/ladder.sh`). It is the family's `x-rust` tier: same names, same order, same structure and comments; only what Rust forces differs, and each module's header says what. The hardware model, its evidence and its open questions are the reference's (its README, docs/status.md, docs/timing.md); "this board matches the Python" is a statement about fidelity, not about the hardware. Built on the family's Rust cores, by path, checked out beside this repository: [a2600-rust](../a2600-rust) `f9af024` (the TIA, the RIOT and the whole 2600 mode, through its sockets), [6502-rust](https://github.com/alewman/6502-rust) `129e742` (SALLY) and [pokey-rust](https://github.com/alewman/pokey-rust) `b37263d` (cartridge POKEYs). Status, measured: [docs/status.md](docs/status.md). How it was built: [docs/build-progress.md](docs/build-progress.md), [docs/handoff-brief.md](docs/handoff-brief.md). ## Run ROMs and BIOS images are bring-your-own, read in place, found through `NO_INTRO_DIR` (the No-Intro `Atari - Atari 7800 (BIN)` and `Atari - Atari 2600` folders) and `MAME_ROMPATH` (`a7800.zip`, `a7800p.zip`, by hash). ```sh cargo build --release target/release/a7800-trace CART --slices 600 --out trace.txt # the gate's trace of a run cargo build --release --features frontend --bin a7800-play # needs SDL2 target/release/a7800-play CART [--palette cool|warm|hot] [--composite] [--scale 3] [--direct] ``` Window keys: arrows = joystick 1, Z / X = its two buttons (Space both), Enter = Reset, Tab = Select, P = Pause, F1 / F2 = difficulty switches, Escape quits (the reference's). ## The gate `scripts/ladder.sh` (`--faults` adds the seeded faults): the pins, build, fmt, clippy, the reference's unit tests transcribed (`cargo test`), the per-slice lockstep against the reference over `scripts/cases.tsv` and again with save states half way, a2600-rust's gates through the 7800's own TIA and 2600 mode, the window judged headless, the speed. The lockstep needs the reference locally (a7800-python's `.venv-pypy` and a clone at `external/a7800-python`), so it runs by hand; CI (`.github/workflows/ci.yml`) runs fmt, clippy and the tests. ## Licence MIT (see `LICENSE`); every source file carries `SPDX-License-Identifier: MIT`. `NOTICE` keeps the reference's notices (MAME's CC0 software list, facts from MAME's BSD-3 7800 files, k7800 under MIT), which travelled with the transcription.