# Status Where the board stands, measured. Detail: [build-progress.md](build-progress.md) (every milestone, its exit and its numbers), [validation.md](validation.md) (every judge, its tier and pin), [claims.md](claims.md) (what is claimed, how strongly), [architecture.md](architecture.md) (modelling level per component, domains and channels, the evidence-tag conventions), [provenance.md](provenance.md). ## Measured At **`f7629e8`** (2026-11-13, before the specification-tier pass; PyPy 3.11, `nice -n 19`, `PYPY_GC_NURSERY=1M`), and again at the end of that pass (the last section of this file): | Gate | Command | Result | | --- | --- | --- | | default suite | `.venv-pypy/bin/pytest -q` | 77 passed, 5 deselected (`slow`) | | a2600-python's die traces through 2600 mode | `scripts/gates_2600.py --die` | 39 / 39 | | RIOT timer console ROMs, both 7800 rows | `scripts/gates_2600.py --timers` | 14 / 14 NTSC, 14 / 14 PAL | | 2600-mode smoke lockstep against a2600-python's board | `scripts/gates_2600.py --smoke` | 112 / 112 identical | | the six M2 titles against MAME 0.285 (detector) | `scripts/frames_mame.py "$NO_INTRO_DIR/Atari - Atari 7800 (BIN)/ (USA).zip" --frames 760 --every 20 --mame-switches --mask-tia-undriven --mask-open-bus` (Asteroids adds `--timer-log` of its trace, C11/C12) | Asteroids, Centipede, Dig Dug, Joust, Galaga, Food Fight: 0 of 30 frames differ each | | M8 window, palettes, composite (headless) | `scripts/m8_frontend.py` | PASS (20 frames read back, 0 differ; run on the item-2 tree, `eb65823`, which changed no behaviour) | | seeded faults | in the suite (`tests/test_maria_dma.py`: last-line cost, end test, DLI timing); `m8_frontend.py --fault keys/pixels/composite` | each caught | Milestones (build-progress.md): **1, 2, 6 passed; 3, 4, 5, 7, 8 in part.** Of the 110 certainly-typed licensed dumps, 110 boot to frame 400 and 104 show a picture (the six explained); at frame 400, 45 of 56 NTSC and 30 of 37 PAL are pixel-exact against MAME 0.285, every other one classified (session 8 record). Speed, PyPy: about 2-5 % of real time without sound, 10 % in `--wav` runs (build-progress.md, not re-measured since session 5): a reference board, correct before fast. **Unverified:** no console run exists, so no claim says the board's frames or timing equal a console's. MARIA has no tier-1 judge (no die, no published capture): its strongest evidence is GCC's gate-level diagrams and reported console measurements. The sound mix, light-gun timing, paddles, trak-ball and the frontend palettes are fits. 2600 mode inherits a2600-python's verdicts: since 2026-11-14 those of the rebuilt project, now at `28fb095` (provenance.md, "The a2600-python restart" and "The answered requests"; the old pin's open rewrites went with its archive). ## The a2600-python repin to 28fb095 (2026-11-14) a2600-python answered this board's four issue files (its docs/api.md, "Requests from hosting boards, decided"); the board now pins **`28fb095`** (was `9475aa1`, earlier the same day) and uses what was granted, in place of its workarounds: - `mode2600.py`: `System2600` is now a subclass of `a2600_python.system.System`. The 7800 side runs (BIOS or direct start) and the hand-off builds `System(cartridge, row, board=Board(row, cartridge, tia=, riot=, cycles=), cpu=SALLY)`: SALLY adopted as it stands, not powered on (issue 0001, option 1). Its own copies of `step`, `run_cycles`, `run_frames`, `run_until` are gone; the gates' factory type now holds. `from_rom` passes the 2600-mode row's `timing.cpu_hz` to `load` (issue 0003), so a DPC's music oscillator counts the console's clock: the PAL 7800 row's differs from NTSC's. - `sound.py`: `SoundTap` sets `Audio.on_sample` instead of replacing `Audio.tick_b` on the instance, and drains the TIA's own list with `take_samples()` (issue 0003). - `controllers.py`: unchanged; `RIOT.input_a`, `ddr_b`, `out_b` are now listed, read-only, as it uses them (issue 0003). - `scripts/gates_2600.py`: `gates.timer_roms(..., machine=row)` with `make_system` (no per-row closure), `gates.smoke_names(root)` (its own reader removed) (issue 0002); `--bios` now prints 60 frames' `gates.run_hashes` digests per dump and adds Pitfall II (DPC), so its runs can be compared. - `pyproject.toml`: a2600-python pins 6502-python `741419a` like this board (issue 0004), so a plain `pip install .` resolves (checked in a fresh scratch venv: one 6502-python URL); the README's `--no-deps` workaround is gone. The four issue files are closed (a line at the top of each), kept as filed. Gates before (the `9475aa1` pin: suite, die, timers, `--bios` with hashes and Commando rerun today before the reinstall; smoke, #699 and the M2 titles as recorded in the next section, same day) and after (this commit's tree; PyPy 3.11, `nice -n 19`, `PYPY_GC_NURSERY=1M`): | Gate | Before | After | Why it moved | | --- | --- | --- | --- | | default suite, `.venv-pypy/bin/pytest -q` | 78 passed, 5 deselected | 78 passed, 5 deselected (`test_the_chips_are_the_same_objects` now also asserts the class is a2600-python's `System` and SALLY the adopted CPU) | - | | die traces, `--die` | 39 / 39 | 39 / 39 | - | | timer ROMs, `--timers` | 14 / 14 `NTSC_7800`, 14 / 14 `PAL_7800` (row chosen by a closure, invisible to the gate) | 14 / 14 each, the row passed by `machine=` (`make_system` raises on any other row, so the row demonstrably reached it) | - | | smoke, `--smoke` (`gates.smoke_names`: 93) | 93 / 93 identical | 93 / 93 identical (1,000,000 bus cycles each by `gates.lockstep`, 30 frames' `gates.run_hashes`; 0 refused; 1,842 s) | - | | PAL 7800 #699, `--serial PAL_7800` | 19,455 of 19,455 cells | 19,455 of 19,455 cells (638 s) | - | | 2600 dumps from both BIOS rows, `--bios` (60 TIA frames' pixels, audio, registers digests) | 12 / 12 handed over (NTSC at MARIA frame 16, PAL at 1) | 12 / 12, every digest identical to before, Pitfall II included | Pitfall II's music does not start without input, so this gate cannot see the DPC clock (below) | | Pitfall II, music on (Reset 30-39, fire 100-109, 600 frames hashed; scratch script, BIOS start), DPC given the NTSC clock (= before) vs the row's (= after) | | NTSC: identical (0.017600 ticks a cycle both); PAL: audio `c1b4c1c2` -> `90f85dd7` (0.017600 -> 0.017762 ticks a cycle), pixels `3113d6dc` and registers `e45b2f53` unchanged | the upstream DPC clock (a2600-python `28fb095`): the oscillator runs in its own hertz (DOC: Crane's patent, Horton), so on the PAL row the music now plays at the cartridge's own rate. The one expected change | | the six M2 titles vs MAME 0.285 (frames 160-760, every 20) | 0 of 30 differ each | 0 of 30 differ each (Asteroids, Centipede, Dig Dug, Joust, Galaga, Food Fight) | - | | Commando POKEY writes vs MAME, 60 s (a fresh 65 s writes-only trace) | 10,850 identical | 10,850 identical; the whole saved run (all 16,739 writes with their clocks and periods) byte-identical to before | - | Nothing in 2600 mode moved except Pitfall II's audio on the PAL row, traced to the upstream DPC change; nothing in 7800 mode moved. The 7800 was not tuned. For a future a7800-rust: pin this board at **`d6b220d`**, the commit that records this section, with a2600-python at `28fb095` beneath it (its docs/status.md names `28fb095` for downstream). ## The POKEY core swap (2026-11-14) The POKEY core was archived for provenance and restarted clean; the board now pins pokey-python **`6ed1ffa`** (provenance.md, "The POKEY core"). The socket (`cartridge/schemes.py` `Pokey`) follows its docs/adoption.md: `POKEY(C012294)`, register = A3-A0, the bus access and then one `tick()` per Φ2 period at the cartridge port (stretched TIA/RIOT cycles, RDY repeats and DMA periods included: the board's `_period_end`, unchanged), `mix()` into `sound.py`'s TIA + POKEY mix (unchanged), and the chip's `snapshot()` in the cartridge state (version 2; the board has no whole-machine save state yet). /IRQ, the pot pins and /KR are not wired (as before). Gates before (the pin `e276d27`, the numbers recorded at `fe31b72` and session 4/5) and after (this commit's tree): | Gate | Before | After | Why it moved | | --- | --- | --- | --- | | default suite, `.venv-pypy/bin/pytest -q` | 77 passed | 78 passed (one new socket test: access-then-tick and a snapshot round trip) | a test added | | Commando POKEY writes vs MAME, 60 s (`scripts/sound_writes.py` on a fresh 65 s writes-only trace, POKEY writes filtered) | 10,850 identical | 10,850 identical (TIA writes differ from 3.504 s as before, C11) | - | | Ballblazer writes vs MAME, 60 s | identical to 10.33 s (1,134 writes), first RANDOM read $D2 vs $09 (C22) | the same: 1,134 writes to 10.327 s, RANDOM $D2 vs $09 | - | | POKEY reads other than RANDOM | not recorded | POT0-7 before any POTGO read $00 (MAME $E4); ALLPOT $FF, KBCODE $00 (MAME $00, $09); Commando's pot reads one count apart at one read (17.5 s) | the core's power-on choice (its B1.8: registers and counters 0, no scan, `HYPOTHESIS`); no write follows from them in either run | | Ballblazer audio vs MAME's recording, 3-10 s | r 0.943, sounding 99.5 %, pitch 93.2 %, median 0.04 | r 0.949, sounding 99.5 %, pitch 92.4 %, median 0.04: agree | same writes; the new core's `mix()` curve (its B3.9, fitted DAC and saturation) and channel output | | Ballblazer audio, 3-63 s | r 0.581, pitch 31.3 % | r 0.605, pitch 31.8 % | as above; still differs after 10.3 s as its writes do | | Commando audio, 3-10 s / 3-63 s | r 0.922, pitch 16.6 % / r 0.751, pitch 71.8 %, median 0.12 | r 0.922, pitch 16.6 % / r 0.756, pitch 71.7 %, median 0.12 | as above | | the six M2 titles vs MAME (frames 160-760, every 20) | 0 of 30 differ each | 0 of 30 differ each | - | | 2600-mode gates | die 39 / 39; timers 14 / 14 NTSC, 14 / 14 PAL; smoke 112 / 112 | die 39 / 39; timers 14 / 14 NTSC, 14 / 14 PAL; smoke **93 / 93** identical | the smoke list is read from the a2600-python checkout beside this repository (`../a2600-python/tests/smoke_dumps.txt`), which is being rebuilt with a new history (HEAD `64d0307`, no commit `4613846` in it) and now lists 93 dumps; the installed a2600-python is still `4613846`, untouched. Not POKEY | ## The a2600-python repin (2026-11-14) The a2600-python this board pinned (`4613846`) was archived for provenance and the project rebuilt clean (provenance.md, "The a2600-python restart"); the board now pins **`9475aa1`**. The glue follows its docs/api.md and nothing else: - `board.py`: `TIA(hclock, row.tia_revision)` (the revision is a `TIARevision` object handed to the constructor, no longer a tuple set afterwards); - `machine.py`: the 2600-mode rows are `NTSC_7800` and `PAL_7800` (`HOSTED_MACHINES`, `tia_clocks_cpu` False; were `A7800_NTSC`/`A7800_PAL`); - `mode2600.py`: `Cart2600` follows the new connector protocol (`access(address, value, t, write)`, and `snoop` with the settled byte for the schemes that latch it, delivered at the read's period end from the board's data-bus latch); `System2600(cartridge, machine, ...)` takes a built cartridge as the gates' `system_factory(cartridge, machine)` does, with `from_rom` loading as a2600-python's `System.from_rom` does (no `cpu_hz=`: issue 0003); - `scripts/gates_2600.py`: `gates.die_traces(root, tia_factory=)` (a TIA as `board.py` makes it), `gates.timer_roms(root, system_factory=)` (one factory per 7800 row: issue 0002), the smoke list read from the checkout's `tests/smoke_dumps.txt` (`gates.smoke_names` is gone: issue 0002) and judged by `gates.lockstep` (every bus cycle, 1,000,000 a dump) plus `gates.run_hashes` on both sides over 30 frames (pixels, audio, registers: the lockstep sees no picture), `--serial CONSOLE` as `gates.serial_tables` (all seven #699 ROMs); - `tests/test_mode2600.py`: the new `gates.lockstep` signature and rows. Gates before (`5fe51e9`, the archived pin; the default suite, die and timers rerun before the repin, the rest as recorded today in the POKEY swap above) and after (this commit's tree; PyPy 3.11, `nice -n 19`, `PYPY_GC_NURSERY=1M`): | Gate | Before | After | Why it moved | | --- | --- | --- | --- | | default suite, `.venv-pypy/bin/pytest -q` | 78 passed, 5 deselected | 78 passed, 5 deselected (`-m slow tests/test_mode2600.py`: 2 passed) | - | | die traces, `--die` | 39 / 39 | 39 / 39 (replayed into this board's TIA now; seeded fault, the PAL 7800 revision: 11 of 39 fail) | - | | timer ROMs, `--timers` | 14 / 14 NTSC, 14 / 14 PAL | 14 / 14 `NTSC_7800`, 14 / 14 `PAL_7800` | - | | smoke, `--smoke` | 93 / 93 identical (30 frames: registers before every instruction, frame digests; old `gates.lockstep`) | 93 / 93 identical: 1,000,000 bus cycles each by `gates.lockstep` and 30 frames' `gates.run_hashes` (pixels, audio, registers) on both sides, `NTSC_7800`; 0 refused by the loader (1,980 s; the lockstep alone, run first: 93 / 93, 1,221 s) | the judge changed with a2600-python's `gates.lockstep` (bus cycles, no picture), so `run_hashes` was added beside it; the list is a2600-python's 93 dumps | | PAL 7800 #699, `--serial PAL_7800` | `7800-early` (= `early_HMOVE`): 0 cells differ | all seven tables: 19,455 of 19,455 cells (648 s; `early_HMOVE` 1,311 of 1,311) | more of the console's tables are run: the new gate runs all seven ROMs of a console | | 2600 dumps BIOS-started, `--bios` | 10 / 10 (NTSC hands over at MARIA frame 16, PAL at frame 1) | 10 / 10, the same frames | - | | the six M2 titles vs MAME 0.285 (frames 160-760, every 20) | 0 of 30 differ each | 0 of 30 differ each | - | | Commando POKEY writes vs MAME, 60 s (a fresh 65 s writes-only trace) | 10,850 identical | 10,850 identical (MAME 10,866 before 60 s; the board stops at MAME's total of all writes, as before; TIA writes differ from 3.504 s as before, C11) | - | Seeded faults for the smoke judge on Combat (Europe), 200,000 bus cycles and 30 frames: the data-bus latch not carried over and Select held at the hand-off are caught by the lockstep (not by the hashes); the TIA 100 half clocks off is caught by the hashes (pixels, registers; not by the lockstep). Not caught by either on Combat: the TIA 1 half clock off, the PAL 7800 revision on the NTSC row, the RIOT timer's value at the hand-off (Combat realigns on WSYNC and reloads its timer before reading it, so these are likely equivalent on this dump; not shown). Nothing in 2600 mode moved, so no number here is the 2600 side's change. The install changed: a2600-python `9475aa1` pins 6502-python `1ae3610`, older than this board's `741419a`, so pip resolves only with a2600-python installed `--no-deps` (README "Install", issue 0004; resolved by the repin to `28fb095`). Socket corners recorded, none worked around: `docs/issue-a2600-0001-system-handoff.md` (`System(board=)` always powers a fresh 6507), `0002-gate-rows.md` (`timer_roms` without `machine=`; the smoke list), `0003-unlisted-names.md` (`Audio.tick_b`/`samples`, `RIOT.input_a`/ `ddr_b`/`out_b`, a clock for DPC), `0004-cpu-pin.md`. (Superseded the same day by the repin to `28fb095` above: a7800-rust pins the commit that records that section, not this one.) ## Left, in order 1. Milestone 4: reach M.I.A.'s level 2 and Karateka's second enemy; decide whether "state parted after a frame-phase race" meets the exit for Choplifter, Alien Brigade, RealSports Baseball and M.I.A. 2. Milestone 5: the SNES2Atari test ROM and 7800basic's controller samples under scripted input. 3. Milestone 7: XM, SOUPER, BupChip, Covox, the 12 untyped dumps, U26. 4. Milestone 8: the full sweep. 5. The x-rust transcription (a7800-rust) can start from this specification; its lockstep case table would begin with the six M2 titles and the 2600-mode smoke. ## Open decisions for Aubrey - Milestone 7's sound boards (XM's YM2151 and POKEY, SOUPER, BupChip): build now, or wait (handoff-brief decisions 8 and 9 recommended a silent YM2151 socket and SOUPER/BupChip last or dropped). - The full compatibility sweep (milestone 8): when. - Milestone 4's exit: accept "game state parted after a frame-phase race, main line identical to MAME up to it" for the four titles, or require a forced lockstep past the race. - a2600-python's eight inherited rewrite items: closed by its restart and this board's repin to `9475aa1` (2026-11-14). Its four socket corners (`docs/issue-a2600-0001` to `0004`) were answered by a2600-python and adopted with the repin to `28fb095` (2026-11-14); nothing is open with it. ## At the end of the specification-tier pass At **`fe31b72`** (2026-11-13), the same commands: default suite 77 passed; die traces 39 / 39; timer ROMs 14 / 14 NTSC and 14 / 14 PAL; smoke 112 / 112 identical; the six M2 titles 0 of 30 frames differ each; M8 PASS; the three M8 seeded faults each FAIL (caught), the suite's MARIA faults caught. Nothing moved: the pass changed no behaviour. The 2600-mode gates read a2600-python's checkout beside this repository (`../a2600-python`: `tests/die_traces`, `reference/src/tia-fpga/sim/traces`, `tests/test_roms/stella-issues/`, `tests/smoke_dumps.txt`; `reference/hardware/stella-issues` for `--serial`).