# Validation: the oracles found, ranked, and pinned Gathered 2026-10-21. Every file is pinned by SHA-256 in `scripts/pinned_files.json` (256 files, 138 MB) and every repository at a full commit in `scripts/pinned_repos.json` (8 since the restart); `python scripts/fetch_references.py` rebuilds `reference/` and `tests/test_roms/`, `--verify` checks them ("all pins satisfied" on 2026-10-21; the AtariAge HTML copy of the Programmer's Guide changes on every request and is pinned as a live page). ## The tier rule **Hardware-captured > die-derived > hardware-corrected > emulator-derived.** A lower tier is a detector, never a judge. Die-derived means a simulation of the chip's own netlist, extracted from die photographs, run here; it judges the circuits it covers once shown to reproduce hardware-captured behaviour where any exists. For the 2600 the order matters more than usual, because the hardware tier is thin and the die tier is unusually strong. ## Hardware-captured What exists, honestly: - **Machine-readable console results: Stella issue #699** (ale-79, 2020). Seven test ROMs (`early_HMOVE.bin`, `HMOVE_RESPx.bin`, `HMOVE_RESPx_{BL,M0,M1,P0,P1}.bin`) print ASCII tables of object positions over joystick port pin 7 (SWCHA D7, 57,600 baud 7N1, after RESET). Text results from **six consoles: PAL 7800, PAL Jr. '84, PAL Jr. '91, PAL light sixer, PAL Vader, SECAM woody**. No NTSC console. The tables show the RESxx/extra-motion-clock race differs per console *and per object*; everything else agrees. Files: `reference/hardware/stella-issues/699-*.zip`. **The board can decode the serial stream from its own SWCHA writes**, which makes these a diffable judge (for the PAL machine row, and for "agrees everywhere the consoles agree" on NTSC). - **Console photos with known programs**: the Atari Compendium TIA page (per chip version: "2 or 3", Cosmic Ark, Kool-Aid Man, Pesco, He-Man, Centipede, Pitfall II, a thermal-drift video), Stella issues #19 (starfield), #63 (NUSIZ during draw and HBLANK), #68, #91, #246 (a 7800 that changes as it warms), #97 (timer tests), #294 (collisions in HBLANK). **Caution**: thrust26 calls one #97 timer image "(faked) output of my console" (redrawn); several "console" PNGs (e.g. #294 V1.4) are clean renders. Each photo's provenance is in its pin entry; only those the issue text calls camera photos count. - **Prose result tables**: #108 (five timer tests on an NTSC light sixer and a Jr.; the "192xxx" values were an artefact of Harmony's menu setting the PA7 flag, and ale-79's 2020 retest matches Stella), #213 (RESMP0 on a four-switch woody, Excel), Bradford Mott's 1998 HMOVE-at-cycle table for P0/P1 (Stella list, pinned), Stolberg's 1997 Cosmic Ark and 1999 "2 or 3" posts. - **Logic analyser**: screenshots only (#5: an 8-channel capture of a PAL Vader running Fatal Run on R/W, OSC, SYNC, RDY). No raw data. - **Not found**: any raw bus capture, any lossless audio recording of a 2600, any hardware-measured palette. ## Die-derived - **Sim2600** (gregjames/Sim2600 `af3bc45`, 2015; CC0 per LICENSE.md, MIT per README: C1): the visual6502 transistor netlists of the **6507 and the TIA** (photographed chip: Atari 10444D), simulated switch by switch. **The RIOT is not die-level** (`emuPIA.py`, a ~50-line behavioural model); no die-level 6532 exists anywhere searched. - Runs here (2026-10-21): copied to `reference/build-sim2600/`, tia-fpga's `sim/patches/sim2600-py3.patch` applied, `pickle.load` replaced with an unpickler that admits only `array.array` (the pickles were inspected with `pickletools` first). - Reproduced tia-fpga's committed `hmove` and `vdel` traces **byte for byte** (apart from the header line naming the ROM path): `python3 sim/roms/make.py --sim2600 ../Sim2600 --traces ../traces-here hmove vdel`, 486 s, 11–12 ms per half clock. - Speed: a frame is ~120,000 half clocks, so about **25 minutes per frame**. A judge for targeted programs, not for games. - **tia-fpga die traces** (lrrosa/tia-fpga `7bcd84e`, 2026-09-20; CERN-OHL-S-2.0, patches MIT): eleven generated test cartridges (`playfield`, `players`, `missiles`, `ball`, `collisions`, `hmove` with Cosmic Ark, `resets_hblank`, `vdel`, `vertical`, `audio`, `audio_modes`; 20,775–459,447 half clocks each), every TIA pin recorded at every half clock, in two wirings (Sim2600's own and the console's, `sim/traces/phi2/`: C2). The cartridges are generated by `sim/roms/make.py` with its own assembler, so they can be regenerated and new ones written. tia-fpga's Verilog matches all of them on every pin; that RTL is emulator tier (hand-written, though read off the netlist), and its README is a secondary source for the netlist findings in [timing.md](timing.md). **This is the TIA's judge.** The method is tia-fpga's: replay a trace's recorded inputs (Φ0/Φ2, address, data, R/W, CS) into the board's TIA module and compare every output pin at every half clock. It needs the board's TIA to expose a pin-level adapter, which the brief requires. ## Hardware-corrected (programs checked against consoles) - **6502.ts `aux/2600`** (DirtyHairy, MIT, `9c59f7d`): test cartridges with sources (`nusiz_during_draw`, `resx_during_draw`, `positioning`, `starfield`, `enax_delay`, `playfield_2`/`_3`, `rdy`, `blnktest_ext`, `flapping`, `line_test`, `red_line`, a Supercharger BIOS) whose console photos are in Stella #19/#63/#68/#91. Picture compare. - **Stella issue test ROMs** (pinned with their threads): RSYNC tests, starfield, NUSIZ/RESMx, player switching, `testRESMPx`, `oddhmovetest`, `TestCX` V1.3/V1.4, `testCXM1`, `3lb doctor`, `ColorLoss`, `soccer_HMOVE`, `issue1101`, PA7 tests, Stolberg's "2 or 3" (`bin00004`); timer ROMs (`test1-5.bas`, `testTIMINT_*`, `TimerTest_*` from #606, `timer.bin`, `Test_Roll_01`) which print numbers on screen. - **None reports through RAM.** Result protocols: serial (the #699 set), die trace (tia-fpga), numbers on screen (timer ROMs: read by the board's own harness from the TIA output or, better, from RAM once the ROM's variables are located), picture against a photo (the rest). - Verdicts Stella reproduces that match recorded hardware: `test1.bas` shows 128246 (the corrected hardware value); `testTIMINT_withDelay` before $00 / after $80 / delay +00 (hardware row "0/80/0"); TestCX V1.4's red collision bar; "2 or 3" shows 2 columns. - Not found: an AccuracyCoin-like self-checking suite. Gopher2600's own test ROMs are undistributed ("permissions pending"; sources listed in Gopher2600-Dev-Docs `test_rom_urls`, unlicensed, whose pin the restart removed). AtariAge attachments (Omegamatrix's RSYNC test, Bradford Mott's HMOVE test) sit behind Cloudflare; only Wayback text snapshots of ten threads were possible. - AtariTestCartridgeBR (MIT, `0471414`): a diagnostic cart developed against Stella, no hardware claim; emulator tier. Needs DASM to build (not installed). ### The CPU core's own judge 6502-python is bus-exact against SingleStepTests `6502/v1` (2.56 M cases) and passes Dormann's tests; that certification carries over, because the 6507 is the same die. **The fit check (2026-10-21) found no core PR needed**: the board masks addresses, never requests interrupts, and stretches the read after a WSYNC inside `read_byte`. Measured bus sequences (6502-python, scratch bus log): `STA WSYNC` = R op, R operand, W $0002; `LDA $1FF0,X` (X = $10) = dummy R $1F00 then R $2000 → $0000; `STA abs,X` always dummy-reads the uncarried address; `INC WSYNC` writes twice; JSR = R, R, dummy R $01FF, W $01FF, W $01FE, R; RTS = dummy R PC, dummy R $01FD, R $01FE, R $01FF, R. So indexed dummy reads hit hotspots exactly as on hardware. **Repinned from `1ae3610` to `741419a` (2026-11-14).** The rest of the family pins 6502-python at `741419a` (6502-rust, a5200-python, a7800-python), ten commits later: DMA-stall hooks (`note_stall`, `dma_stalled`), the `CPUFrame` split, a branch's stalled-read poll, tooling hooks. pip refuses two direct URLs for one package, so a board hosting this one (a7800-python, its issue 0004) could not install both. None of the ten touches a path the 2600 takes (no DMA, no RDY stall reported to the core: the board stretches the read itself), and the board's judges say so, each run on the same tree before and after `pip install --force-reinstall --no-deps` in both venvs (`pip freeze` showing the new URL; `MOS6502`'s MRO showing `CPUFrame`): | Judge | Before (`1ae3610`) | After (`741419a`) | | --- | --- | --- | | Default suite, PyPy 3.11 / CPython 3.14 | 95 / 94 + 1 skipped | 95 / 94 + 1 skipped | | Die traces (slow) | 39 of 39 | 39 of 39 | | Timer ROMs (`gates.timer_roms`) | 14 of 14 | 14 of 14 | | #699 tables, PAL 7800 (`scripts/serial_consoles.py PAL_7800`) | 19,455 of 19,455 cells | 19,455 of 19,455 cells | | Frame hashes (`scripts/frame_hashes.py --check`) | 10 of 10 identical | 10 of 10 identical | a2600-rust's lockstep (on 6502-rust, a transcription of `741419a`) had already passed identically across the same gap; that was evidence, this is the specification's own measurement. Equivalence across a core change is fidelity, not hardware confidence: the core's certification is 6502-python's. ## Specification and secondary research | Source | What | Tier | | --- | --- | --- | | Stella Programmer's Guide (Wright, 1979; PDF + AtariAge HTML) | the register set as Atari documented it | specification | | TIA-1A schematics (Mark De Smet scans: 2048 px set, 400 dpi sheets 1–5, Compendium zip) | the circuit | specification | | Atari 2600 TIA technical manual | OCR text only (PDF returned HTTP 500 on every try) | specification | | MCS6500 Family Hardware Manual (PDF + OCR), 6532 data sheet (zimmers.net), CSG 6500 data sheet (11/85, 6507) | CPU and RIOT; p.78 timer rule | specification | | Console schematics: 2600, 2600A, PAL console, PAL Jr. | clocks, video/audio network | specification | | visual6502 10444D TIA die and substrate photos (4500 px) | the chip Sim2600 models | die | | Towers, *TIA Hardware Notes* v1.0 (2003; atarihq + Compendium copies) | the circuit explained, from the schematics | secondary (schematic-derived) | | Horton `sizes.txt`; qotile.net maps and Advanced Programming Guide; `tia_color.html`; nocash `2k6specs.htm` | bankswitching, maps, palette notes | secondary | | tia-fpga README | netlist findings | secondary | ## Emulator-derived (detectors) ### Stella (stella-emu/stella `2c3d702`, 2026-10-12, reports "8.0_pre"; GPL-2.0+) The reference emulator for 25 years. The board-level detector, run as a closed box (docs/restart.md). Its source, https://github.com/stella-emu/stella @ `2c3d7023e9136f75c789803b44f119d8749dc104`, is not fetched (Aubrey, 2026-11-24): the programs are shipped builds (Stella's releases, libretro's `stella_libretro.so`) or the ones already built here before that date. The clone and the source copy the SDL build was made in were moved aside unopened, out of the repository; the built SDL binary stays at `reference/build-stella-sdl/stella/stella` (sha1 `60615fbc`). - **libretro core, headless through ctypes**: built before 2026-11-24 from the pin into `reference/build-stella/stella/src/os/libretro/` (26 s, g++ 15.2; no longer built here) → `stella_libretro.so`; a fresh checkout puts a shipped core there. `scripts/stella_run.py ROM|ZIP[:member] --frames N` writes `frames.tsv` (per-frame SHA-256), PNGs, `audio.wav` (31,440 Hz stereo), `ram.tsv`; `--peek`, `--poke FRAME:ADDR=VAL`, `--press start@100-110`, `--option`. Proven on Pitfall! (120 frames in 0.3 s) and 118 test ROMs. Traps: `dev.tia.type` and the RNG seed are unreachable through libretro; player defaults randomise RAM and A/X/Y/P, so **frames 1–4 differ between runs** (later frames, RAM and audio are identical); a harmless "File open/read error" is printed. - **SDL3 frontend for the debugger and TIA variants**: needs SDL3, which was not installed: SDL 3.4.8 (`d9d5536`) built locally with `-DSDL_X11=OFF -DSDL_WAYLAND=OFF -DSDL_UNIX_CONSOLE_BUILD=ON` (no X11 headers), then `PKG_CONFIG_PATH=…/sdl3/lib/pkgconfig ./configure && make -j16` (4 min 22 s). `stella_run.py --debugger --tia-type cosmicark --frames N` runs it under `SDL_VIDEODRIVER=dummy` and dumps `tia`/`riot`/`ram` and a snapshot; `--trace` (`-dbg.logtrace`) logs every instruction with frame, scanline, cycle, pixel, flags, A/X/Y/SP. The debugger's `dump` command fails in this build for every form; the script uses `ram`. - **Traps found by milestone 4's sweep** (all handled in `scripts/picture_compare.py`): `-seed 1` does not fix the SDL build's power-on INTIM (two runs of Berzerk started at $93 and $DE, three of Meteor Defense at $66, $1C and $01), so the board takes INTIM from the snapshot run's own first `riot` dump (`-dbg.logexec 1` writes `run.script.output.txt`), never from a separate run; Stella sets up the console its database names (paddles for Breakout, keypads for BASIC Programming, difficulty A for Treasure Below, phosphor for Amidar), so `-bc JOYSTICK -ld B -rd B -tv COLOR -sp NO -pp NO` gives it the board's (`scripts/lockstep_stella.py` too); its player default simulates a television that loses vertical sync when the frame length changes, rolling the picture for several frames (Maze Craze after 54 frames without VSYNC, Pick 'n' Pile), so `-plr.tv.jitter 0`; and below a PAL frame shorter than the snapshot the debugger leaves rows of #060606, a colour in neither palette, which are trimmed. The flags a run was made with are kept beside its snapshots, and a run with others is not reused. ### Gopher2600 (JetSetIlly/Gopher2600 `4bea39f`, v0.58.0-preview; GPL-3.0+) Accuracy-focused, with a per-colour-clock debugger: the second detector, and the finer one. - Source https://github.com/JetSetIlly/Gopher2600 @ `4bea39fa60470aa6a4d7e68c53a0bb556edbcdfb` (v0.58.0-preview), not fetched (Aubrey, 2026-11-24): `scripts/picture_compare.py` runs the program at `reference/build-gopher2600/gopher2600`, a shipped release binary for a fresh checkout. Before that date it was built here from the pin (Go 1.27.3, `go build -pgo=auto -trimpath -tags=gl32`, 33 s); that build is not on this machine now. - `HEADLESS` mode reads debugger commands on stdin: `STEP FRAME`, `SCREENSHOT`, `PEEK`, `RIOT TIMER`, `TV`. **`QUANTUM CLOCK` + `ONSTEP TIA, CPU` prints the TIA state at every colour clock**: a per-clock lockstep detector. `REGRESS ADD -frames N rom` stores a SHA-1 video digest; playback and log modes exist. Traps: a zip must be named `file.zip/member.a26`; `GOTO` does not advance in HEADLESS (use `STEP FRAME`). ### MAME 0.285 (`a2600`): CPU-level only. [mame-oracle.md](mame-oracle.md). ### Hand-written HDL (emulator tier) tiny-atari-2600 (Apache-2.0, `4682d2f`): permissive, readable, never a judge. MiSTer Atari2600 (A2601 lineage VHDL, GPL-3.0) and tia-fpga's RTL (CERN-OHL-S-2.0) are not opened; the MiSTer pin was removed in the restart. ## What is *not* available - No NTSC console in the machine-readable HMOVE tables. - No raw logic-analyser data, no lossless audio, no measured palette. - No die-level RIOT. RIOT behaviour rests on the data sheet, the Hardware Manual, and console results in Stella issues. - No self-checking test suite with RAM result codes. - The TIA technical manual PDF (archive.org 500; OCR pinned). - AtariAge attachments behind Cloudflare; threads 375698 and 291749. - Stella via libretro cannot pick a TIA type or a seed (the SDL build can). ## Local romsets (read in place, never copied or committed) The directories in `NO_INTRO_DIR` (`os.pathsep`-separated: a No-Intro set of 897 zips and one of 697 7z): 895 distinct dumps ([cartridge.md](cartridge.md)). Also present: `atari5200`, `atari7800` (future boards). ## Licences that bind the build The rules are [restart.md](restart.md)'s (2026-11-14), which replace the older "read, cite, never copy". Stella (GPL-2.0+), Gopher2600 (GPL-3.0+), 6502.ts's emulator, MiSTer A2601 (GPL-3.0), MAME's GPL files and tia-fpga's RTL (CERN-OHL-S-2.0) are closed boxes: built and run, never opened. MAME's BSD-3-Clause files (`tia.cpp`, `a2600.cpp`, `mos6530.cpp`, `bus/vcs/*`, headers checked one by one, [provenance.md](provenance.md)) and its CC0 software lists may be read and cited with their notice (NOTICE). Sim2600 (CC0/MIT), 6502.ts's `aux/2600` test cartridges (MIT) and tiny-atari-2600 (Apache-2.0) are permissive; cite anyway. Forum, issue and mailing-list content carries no licence: facts in prose under the middle rule, code fragments in it unread, never committed. `scripts/count_bankswitch.py` runs the pinned Stella binary (`-rominfo`) and reads only what it prints. The board's own detector is written from Horton's notes and the scheme descriptions. ## Certification record ### Seeded faults for every judge since the restart (2026-11-14) `scripts/seeded_faults.py` (PyPy, each fault in a fresh copy of the package; a judge counts as catching only when it fails, never when it collects nothing): **35 of 35 caught**. Milestone 5's twelve, and: | Judge | Faults (each one line), all caught | | --- | --- | | Driving controller, Booster Grip, paddles (unit rules from nocash) | pins 1 and 2 swapped; the grip's buttons on the other port's pads; the half-supply trip point back | | SaveKey (unit rules from the data sheet) | no page roll-over; acknowledges during the write cycle; any chip select; no $7FFF wrap | | SaveKey against a game's own code (Go Fish!, slow) | SDA on pin 2 instead of pin 3 | | Palettes, window | PAL hue 1 coloured; the window never stops (caught by the test's two-minute bound) | | Machine rows | SECAM with a colour switch | | #699 tables per console (slow, one ROM each) | merged pulses always step (PAL 7800 `early_HMOVE`); strobe drops ignored (light sixer `_P0`); the Vader's missile 1 field lost (`_M1`) | | Die traces (slow) | the reference revision's merge mask wrong for the ball | | The serial judge itself | it counts every cell as a match | | Sockets | the board ignores a handed-in RIOT; it restarts the pulse count; a 2600 row's cycle grid unchecked; a listed public name gone; the die gate builds its own TIA; lockstep compares nothing | | Frame hashes | the audio mix's denominator off by one (Pitfall!) | One equivalent mutant noted, not counted: the same audio fault on Combat, which is silent for its 600 frames. Of the ten frame-hash games four make sound in their first 600 frames with no input (Pitfall!, Montezuma's Revenge, BurgerTime, Decathlon), so the audio part of that gate rests on those four. ### The DPC oscillator on every row (2026-11-14) **The fact** (DOC, [cartridge.md](cartridge.md) "What clocks the DPC's music oscillator"): the oscillator is on the cartridge and free of the console's clock: Crane's patent US 4,644,495 ("an internally generated asynchronous clock signal", "a 42 kHz free running clock"; the cartridge's only signals are address, chip select, data and power), nocash's slot pin-out (no clock pin), Horton's own cartridge (an RC set by a board resistor; touching it bends the pitch). Not provisional on that point; the frequency itself stays 21 kHz, FITTED by Horton's ear. **The change**: `System.from_rom(rom, machine)` passes `machine.timing.cpu_hz` to the cartridge (an explicit `cpu_hz=` wins); `load(..., cpu_hz=)` was already there for hosts. NTSC's clock equals the DPC default to the bit, so **NTSC does not change**; on the PAL and SECAM rows the music was 0.92 % flat and now plays at the NTSC pitch. | Judge | Result | | --- | --- | | `tests/test_dpc_clock.py`, one test per row of `MACHINES` and `HOSTED_MACHINES` (8 + 2), through `from_rom` and through `load(cpu_hz=)` | 21,000 ± 1 oscillator ticks in one second of each row's CPU cycles; the NTSC clock on PAL cycles gives 20,807 (the old behaviour) | | `scripts/frame_hashes.py --check tests/frame_hashes.tsv` (NTSC, no input) | 10 of 10 identical (Pitfall II's music does not start without input, so this record cannot see the oscillator) | | `scripts/frame_hashes.py --machine ROW --start 100` (Pitfall II, music on), `tests/frame_hashes_rows.tsv` | NTSC: identical to a run with the NTSC clock given explicitly (audio `a4520b38`). PAL: before (NTSC clock) audio `a4520b38`, after `30af1b90`; pixels `3113d6dc` and registers `935fc5bb` identical before and after. SECAM: as PAL | | Seeded faults `dpc-row-clock-dropped` (from_rom drops the row's clock), `dpc-clock-ignored` (DPC ignores `cpu_hz`) | 2 of 2 caught; the list is now 37 | | Default suite | PyPy 124 passed (101 + 23); CPython 123 + 1 skipped | | Die traces | 39 of 39 | ### The 7800's repin requests (2026-11-14) a7800-python's four issue files after its repin to `9475aa1` (only those four files were read), each decided in [api.md](api.md) ("Requests from hosting boards, decided"), one commit each: | Issue | Decision | Checked by | | --- | --- | --- | | 0004 CPU pin | 6502-python `1ae3610` -> `741419a` | every judge before and after ("The CPU core's own judge") | | 0001 running CPU | `System(..., cpu=)` adopts it, no power-on | `tests/test_sockets.py`: registers kept; a hand-over after 300 instructions gives the same 3,000 instructions' bus cycles as none | | 0002 gate rows, smoke list | `timer_roms(machine=)`; `gates.smoke_names(root)` | 14 of 14 timer results on VCS NTSC, PAL, SECAM and both 7800 rows; the factory sees the row on every run | | 0003 unlisted names | `Audio.on_sample` in place of replacing `tick_b`; RIOT port registers listed read only; `load(cpu_hz=)` to the clocked schemes | `on_sample` equals `take_samples`; DPC takes the clock, 4K and F8 ignore it; the NTSC clock equals DPC's default to the bit | **The 2600 did not change**: after each of the four commits the frame-hash record (`scripts/frame_hashes.py --check tests/frame_hashes.tsv`, each run from a clean checkout of that commit) gave 10 of 10 identical lines, the default suite passed on both interpreters, and after the audio change the die traces gave 39 of 39 (both audio pads judged at every half clock). Not done: seeded faults for the new sockets (the fault list is still 35). ### The 7800 sockets (2026-11-14) a7800-python's requests (its handoff brief, the a2600-python section; only its list of requests was used): the public surface in [api.md](api.md), checked by `tests/test_api.py` (every listed name resolves; `riot.py` and `audio.py` import nothing, `tia.py` only `audio` and the revision record); `Board(machine, cartridge, *, tia=None, riot=None, cycles=0)` taking existing chips as they stand and counting on from the RIOT's Φ2 pulses (`tests/test_sockets.py`: the first bus cycle carries the handed-in count, the lazy timer reads as a fresh RIOT evaluated at that cycle); the CPU/TIA phase as a row parameter (`Machine.tia_clocks_cpu`, `PowerOn.half_step`: a 2600 row still refuses an off-grid power-on, a hosted row enters at any half clock); the 7800 rows in `HOSTED_MACHINES`, never in `MACHINES`; and the gates as functions with `root=` and a factory (`gates.py`: die traces on a supplied TIA, timer ROMs, the serial tables per console, frame hashes, and `lockstep`, which runs a candidate board beside this one and compares every bus cycle; a board built from handed-in chips agrees for 20,000 cycles, one with another power-on timer is caught). **The 2600 did not change**: `scripts/frame_hashes.py --check tests/frame_hashes.tsv` (pixels of every line, every audio sample, the 6507's registers and cycle count each frame; ten games, 600 frames: 2K, 4K x4, F6SC, E0, E7, FE, DPC) gives the recorded line for all ten before the item (`a32b516`) and after it. ### Milestone 7 (restart): PAL and SECAM rows, TIA revisions from #699 (2026-11-14) **Rows.** PAL on its own clock (DOC: nocash 3.546894 MHz; the PAL console schematic's own 3.54 MHz TIA crystal); SECAM with its own `Timing` (clock taken as PAL's: HYPOTHESIS, no document gives it) and SWCHB D3 grounded (DOC: nocash). The six #699 consoles are rows: five in `MACHINES`, the PAL 7800 in `HOSTED_MACHINES` (a 7800 in 2600 mode, kept out of the 2600's listing). **Revision fields, derived from the tables.** Every ROM was decoded on the reference board (PAL row) and each console's misses listed by table block: two clean patterns, nothing else (docs/undocumented-behavior.md "TIA revisions as data"): `merge_steps` (PAL 7800 and Jr. '91 split from the other four on all 896 split cells of `early_HMOVE`: player 0 moved right one clock per merged HMOVE pulse) and `strobe_drops` (260 cells of each `HMOVE_RESPx` table: the object one clock right where a stuffed pulse falls two half clocks after the RESxx strobe; players on the light sixer, missiles on the light sixer, both Jr.s and the Vader). The rejected readings: a pulse on the strobe's own half clock kept (light sixer `_P0`: 525 misses), a pulse late in the hold dropped (515 misses). **The judge: each console's own tables, every cell, one console per run** (`scripts/serial_consoles.py CONSOLE`, PyPy, niced, serially, from a frozen copy of `a32b516`; 50-212 s a ROM): | Console (row) | `early_HMOVE` | `HMOVE_RESPx` | `_P0` | `_P1` | `_M0` | `_M1` | `_BL` | | --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | | PAL 7800 (hosted row) | 1,311/1,311 | 3,024/3,024 | 3,024/3,024 | 3,024/3,024 | 3,024/3,024 | 3,024/3,024 | 3,024/3,024 | | PAL Jr. '84 | 1,311/1,311 | 3,024/3,024 | 3,024/3,024 | 3,024/3,024 | 3,024/3,024 | 3,024/3,024 | 3,024/3,024 | | PAL Jr. '91 | 1,311/1,311 | 3,024/3,024 | 3,024/3,024 | 3,024/3,024 | 3,024/3,024 | 3,024/3,024 | 3,024/3,024 | | PAL light sixer | 1,311/1,311 | 3,024/3,024 | 3,024/3,024 | 3,024/3,024 | 3,024/3,024 | 3,024/3,024 | 3,024/3,024 | | PAL Vader | 1,311/1,311 | 3,024/3,024 | 3,024/3,024 | 3,024/3,024 | 3,024/3,024 | 3,024/3,024 | 3,024/3,024 | | SECAM woody | 1,311/1,311 | 3,024/3,024 | 3,024/3,024 | 3,024/3,024 | 3,024/3,024 | 3,024/3,024 | 3,024/3,024 | **116,730 of 116,730 cells** (19,455 per console, headers included). Every cell counts, including where the consoles disagree; before the fields the reference board matched the four-console majority on `early_HMOVE` and missed 260 cells per affected table on the others (milestone 3's count of "agreed cells" is superseded by this per-console judge). Slow tests run one ROM per field (`tests/test_revisions.py`). **The reference unchanged**: frame hashes identical (ten games x 600 frames), die traces 39/39 at `a32b516`. **PAL against Stella (detector)**, `picture_compare.py --detector stella --machine "Atari VCS (PAL)" --frames 150`: Combat (Europe) 145/145, Enduro (Europe) 145/145, Pac-Man (Europe) 145/145. Written down, not fixed: Space Invaders (Europe) 0/145 (no line shape aligns: Stella shows a different screen from the board's; not diagnosed) and 32 in 1 (Europe, Australia) 0/145, 27 pixels on 8 lines near a GRP0 write at clock 93 of the line (GRP writes made three half clocks late do not remove it; not die-traced). The board's TIA logic is the same on every row (only the clock, palette, switches and revision fields differ), so the picture compare judges the reference model, not the PAL clock. ### Milestone 6 (restart): controllers, the window, palettes (2026-11-14) Devices from their documentation, nothing from an emulator's source (claims.md "Controllers and the frontend"; `controllers.py`, `savekey.py`, `palettes.py`, `play.py`): - **Driving controller, Booster Grip, joysticks**: nocash 2k6specs's pin-outs, its Steering switch diagram (pin 1 = NOT bit 1, pin 2 = NOT (bit 1 XOR bit 0): the Gray code 11, 10, 00, 01 per four clicks) and its 3-button adapter (pins 5 and 9 to +5 V with no resistor: a pressed button charges its pad like a paddle at 0 Ω). Unit rules in `tests/test_controllers.py`. The sense of rotation is HYPOTHESIS: Indy 500 run on the board with the wheel turned one way rotated the car through its headings (a sixteen-step cycle of sprites, some reflected), but which way the car turned on screen could not be read reliably from the sprites; the experiment that would settle it is a console with a Driving controller turned clockwise, or the car's heading variable traced in the game's own code. - **Paddles**: nocash's POT table (1 MΩ → 380 lines, 500 kΩ → 190) replaces milestone 3's fitted pot range and half-supply trip point: under the schematic's RC the trip point is 0.299 of the supply. The paddle test checks 190 lines at 500 kΩ. No frame-hash game uses paddles. - **SaveKey**: the 24LC256's I2C protocol from Microchip's data sheet (DS20001203W, pinned); its wiring from a SaveKey game's own code (Go Fish! (NTSC), $FA73-$FAC0: SCL on SWCHA D3, SDA on D2 driven low through SWACNT, control bytes $A0/$A1). Unit rules (byte and page writes with the page roll-over, random and sequential reads with the $7FFF wrap, no acknowledge during the write cycle or for another chip select, the save file under `$XDG_DATA_HOME/a2600-python`) in `tests/test_controllers.py`. **The cartridges' own code as the judge**: Go Fish! and Wall Jump Ninja (NTSC, v1.1) find the chip (both read; Go Fish! writes $00C0-$00C6 on a fresh chip), and with a known pattern placed at $00C0 Go Fish! reads all seven bytes back into RAM (`test_go_fish_reads_its_block_back_through_the_savekey`, slow, needs `NO_INTRO_DIR`): every bit crossed the lines as the game clocks them. - **Palettes**: NTSC and PAL from MAME 0.285's BSD-3 `tia.cpp` (taken with its notice, NOTICE), SECAM and mono from nocash; each labelled with its origin (`tests/test_frontend.py` checks nocash's structure: PAL hues 1, 14, 15 grey, SECAM's eight colours by luminance). - **`a2600-play`** (pygame-ce 2.5.8, SDL 2.32.10, in the PyPy venv): keyboard, mouse and every device above; phosphor blending as an option; runs headless under `SDL_VIDEODRIVER=dummy SDL_AUDIODRIVER=dummy` with `--frames N --screenshot` (`tests/test_frontend.py`; Pitfall! for 40 frames looked at by eye). - **The 2600 unchanged**: frame hashes (pixels, audio, registers; ten games, 600 frames, `scripts/frame_hashes.py`) identical before and after (`tests/frame_hashes.tsv`). ### Milestone 5 (restart): every scheme the licensed dumps use (2026-11-14) Built from Horton's 2012 mapper document, MAME 0.285's BSD-3 `bus/vcs` devices where Horton is silent, and the dumps' own bytes (`cartridge/`; per-scheme claims and hypotheses in [claims.md](claims.md)). Judges: - **Scheme identity**: the board's own detector (`cartridge/detect.py`, written from the scheme descriptions) against Stella's `-rominfo` (closed box) over the 898 distinct dumps of the `NO_INTRO_DIR` sets: **891 agree** (licensed **712 of 715**: Dig Dug's Super Chip, MagiCard and Video Life, which only MAME's list tells from plain 2K). With MAME's CC0 list first (`identify`): 893 of 898, licensed 713 of 715 before the 8K E7 and FE refinements; the five left are Bump 'n' Jump and Ghost Manor (Europe), since fixed by the detector, and three prototypes on schemes not built (FC, WDSW). - **Boot and frames against Stella** (150 frames, `picture_compare.py --detector stella`), one or more dumps per scheme so far: E0 (Montezuma's Revenge 144/144), E7 16K, 12K and 8K (BurgerTime both dumps, Bump 'n' Jump: 145/145 each), DPC (Pitfall II 15/15 at 20 frames, after the start-count rule below), FE (Decathlon USA 52/52 once the board acts on writes as late as the die shows Stella to be, C25/C30/C31/C33/C37; Europe and France differ by 2-6 pixels near GRP writes, the same cause), UA (Hobo boots to its title: C18 settled). 32 in 1 starts on the same game as Stella (UFO) but Stella runs it as PAL: no frame agrees on the NTSC row (milestone 7). - **The milestone-5 sweep** (`scripts/sweep_stella.py --frames 60 --jobs 2 --only` the 52 licensed dumps whose scheme is not plain or F8/F6/F4, at `37869ca`; 4,672 frames): **30 agree on every frame, 11 more once the board acts on writes as late as the die shows Stella to be** (C25/C30/C31/C33/C37: Decathlon x3, Gyruss, Popeye x2, Star Wars Arcade, Super Cobra, Survival Island, Tooth Protectors, and Pitfall II 53/53, whose first-pass row predates the DPC rule): **41 of 52**. The 11 left, written down, not fixed: | Dump | Scheme | Agreed (with departures) | What differs | | --- | --- | ---: | --- | | 32 in 1 | 32IN1 | 0/55 | Stella runs it as PAL (same game, UFO); milestone 7 | | Fireball, Dragonstomper | AR | 0/52, 0/54 | the program returns into the BIOS ROM (control set to 0), which fast load cannot serve | | Official Frogger, Suicide Mission, Party Mix | AR | 0/51, 0/51, 0/55 | not diagnosed; likely the same BIOS dependence (Party Mix and Survival Island are multi-load) | | Communist Mutants from Space x2 | AR | 0/51, 0/52 | a GRP1 write at clock 66 near the first pixel; not diagnosed | | Rabbit Transit | AR | 54/55 | one frame | | Miner 2049er Volume II | 3F | 28/55 | one pixel near a NUSIZ0 write at clock 96 (a TIA question, not die-traced) | | River Patrol | 3F | 53/55 | two frames, no write named | - **Supercharger, fast load**: Communist Mutants from Space runs; Fireball and Dragonstomper set the control register to 0 and return into the BIOS ROM (Fireball at $FA35) a few frames in, which the fast-load stub cannot serve: no BIOS is available and no permitted source documents its entry points. - **Unit rules and seeded faults**: `tests/test_schemes.py` (16 rules from Horton's text, including his two Supercharger bus-transition examples); `scripts/seeded_faults.py`: 12 one-line faults, **12 caught** (one, the DPC random generator's tap, was missed until the test pinned the first six values worked by hand from Horton's description). **The DPC start-count rule** (claims.md): built first as Horton's sentence reads ("Writing to the start count register also sets the register", taken as setting the flag), Pitfall II drew a column of stray sprite bytes above Harry and no frame matched Stella; with MAME's rule (clear, then compare) 15 of 15 match. The board follows MAME's permissive source and the shipped game's own picture; Stella found the difference. ### Restart: references fetched afresh, detectors rebuilt (2026-11-14) `scripts/fetch_references.py` into an empty `reference/`: all pins satisfied (the #699 issue JSON is a live page and had changed; kept). One new pin: Horton's 2012 mapper document. Rebuilt from the pinned sources, nothing taken from the archive: - **Sim2600** with tia-fpga's two MIT patches (console wiring) and the `array.array`-only unpickler, in `reference/build-sim2600/Sim2600-phi2`. Under PyPy 3.11 it runs at 0.6-0.9 ms per half clock (CPython 3.14: 1.9). - **The 17 local die traces re-recorded** on it from `scripts/die_carts.py`'s 16 cartridges and Donkey Kong (USA)'s power-on (read in place from its zip through a pipe), 1.6 M half clocks in all, two runs at a time. With tia-fpga's 22: **39 traces, all match** (`pytest -m slow tests/test_die_traces.py`, PyPy, 13.5 s), the exact C27 departures of `hmove_cycles` and `hmove_resp0` unchanged. The count at `ad1108d` was 39. - **Stella's SDL build** (closed box): SDL 3.4.8 (`d9d5536`, headless) and Stella at the pin, `configure && make -j2`, in `reference/build-stella-sdl` (built before 2026-11-24; the binary kept, the source copy moved out, above). - Gopher2600 and Stella's libretro core were not rebuilt (milestone 5's judges need only the SDL build). ### Milestone 4: detectors at the board level, then a sweep (2026-10-25) **The harness** (`scripts/picture_compare.py`) compares the board's picture with a detector's at every visible colour clock of every frame. Gopher2600 (`4bea39f`, HEADLESS: `STEP FRAME`, `TV FRAME`, `SCREENSHOT`, its nearest-neighbour scale undone exactly) and Stella (`2c3d702`, the SDL build's debugger: `frame 1` + `saveSnap` per frame at 1x, `-seed 1`, RAM and CPU randomisation off, and the board powered on in that Stella's state: registers and RAM zero, its INTIM, its phase). The libretro core was dropped as a detector here: it seeds power-on from the clock, and two of its runs disagree with each other (Pitfall!'s copyright line, River Raid's start). Colours go through a one-to-one map learnt from agreeing frames; frame and row offsets come from line shapes, which do not depend on the palette. Gopher2600's per-colour-clock TIA state (`QUANTUM CLOCK`, `ONSTEP TIA, PLAYER, MISSILE, BALL`) was used to diagnose, not to compare: its horizontal counter agreed with the board's on all 115,533 colour clocks of Combat's first frames, but its object counters keep no half clocks, so their bookkeeping differs from the die's around HMOVE and blanking while the picture agrees. A divergence names the TIA writes landing near its first pixel, and `--delay-writes` tests an explanation: the board made to act on those writes later (in the run only) must then agree on every frame. **Five games, 600 frames each, no input** (frames from the program's settled start; rerun on the final milestone 4 board and harness, after C34-C38 and the alignment and console-flag fixes): | Game | Gopher2600 | Stella | What differs, and who is right | | --- | ---: | ---: | --- | | Combat | 596/596 | 595/595 | nothing | | Pitfall! | 589/589 | 595/595 | nothing, after the board fix below | | River Raid | 588/588 | 594/594 | nothing | | Adventure | 0/590 | 0/595 | one pixel a frame: VBLANK written at visible clock 4; both detectors blank a clock late (C31, die-settled). With VBLANK writes two half clocks late: 596/596 and 595/595 | | Crystal Castles | 0/596 | 0/595 | 28 pixels a frame: a GRP1 write copies GRP0 through VDELP0 as player 0 draws its last pixel; both detectors act on GRP at least three half clocks late (C30, settled by the new `grp_mid_draw` die trace). With GRP writes three half clocks late: 596/596 and 595/595 | The first divergence of every run was taken to the die before the run was extended, and three of them were new die cartridges (recorded on Sim2600, console wiring; SHA-256 prefixes `grp_mid_draw` aba708f3, `hmove_playfield` a2cd335f, `ball_score` 7dab006c): - **C29, a board bug**: on a line HMOVE's comb blanks to LRHB the board started the playfield at LRHB, 8 pixels late (Pitfall!'s trees, gaps in a playfield drawn on lines that all strobe HMOVE). The die starts it at RHB and the comb only hides the first two bits (`hmove_playfield`: an aperiodic playfield under the comb from cycles 2 and 75; the old rule misses 832 half clocks, `tests/test_hmove_edges.py` catches it too). - **C30**: GRP writes, and the VDEL copies they make, act from the next half clock while a player draws (`grp_mid_draw`, the board matches; the detectors are late). - **C32, a board bug**: under SCORE the ball keeps COLUPF; only the playfield takes the half's player colour (`ball_score`; the old rule misses 24 half clocks; found by the sweep on Alpha Beam with Ernie; `tests/test_picture_rules.py`). The sweep's residue then took seven more die cartridges (SHA-256 prefixes `enable_mid_draw` 26ecd7ec, `hmove_wrap` 6c3c71c5, `resp_start` 9ec77855, `hm_late` 2a43bb20, `refp_mid_draw` 323d566d, `resmp_release` f2cbf360, `hmove_wrap_end` b9a484ae): - **C33**: ENAM and ENABL writes act from the next half clock, as every other register does (`enable_mid_draw`); Stella is at least three half clocks late (24 dumps, Space Invaders and Warlords among them). - **C34, a board bug**: the stretch gate of a 2x or 4x player is caught on HMOVE's stuffed pulses too, so an HMOVE gobbles a wrapped player's tail (`hmove_wrap`; the old rule misses 698 half clocks; Sea Hawk; `tests/test_picture_rules.py`). - **C35, a board bug**: a RESxx hold opens a 2x gate and shuts a 4x one, and the scan counter takes START only on a clock the gate lets through (`resp_start`, `hmove_wrap`). - **C36, a board bug**: the motion comparators see HMxx as it stood four half clocks before, not two (`hm_late`, 156 half clocks; BASIC Programming, Stellar Track). - **C37**: REFP writes act from the next half clock (`refp_mid_draw`); Stella is at least three half clocks late (Strawberry Shortcake). - **C38, a board bug**: RESMP holds the missile's ring from the step its player's scan counter shows 1, with no delay, so a released missile starts four clocks into a 1x player (`resmp_release`, 160 half clocks; Frostbite's ice floes; `tests/test_picture_rules.py`). tia-fpga's `missiles` trace could not show it: its released missile is one clock wide, inside its own player. - **C39**: a stretched player reset at the very end of the line draws its wrapped tail from visible clock 8 on an HMOVE line, after the comb (`hmove_wrap_end`, the board matches); Stella and Gopher2600 both hide it (Meteor Defense, Missile War). Two more cartridges checked the board where the sweep's residue pointed and found it right, so no rule changed: `resm_end` (ef1c254d; a missile reset at the line's last clocks, Raumpatrouille) and `starfield` (afb481d0; StarMaster's ball positioning, HMBL rewritten between HMOVEs on every line). All 39 die traces match (tia-fpga's 22 and this project's 17), with the C27 tie still the only counted departure. **The harness, as the sweep showed it had to be.** Most of the first run's residue was the comparison, not the board. A frame offset and a row offset are found together, each frame offset with its own row offset (Bump 'n' Jump's road scrolls a line a frame, so the wrong frame matched best one row off); the row offset from three frames spread over the run, not one (Coco Nuts's start is blank, so every row offset fitted its frame 30); offsets that line shapes cannot tell apart are told apart by the frames that agree in colour as well (Hangman changes only its background colour); and only frames after the start-up count, with offsets up to 60 frames after one (the televisions cut different numbers of runaway frames: Maze Craze). **The sweep** (`scripts/sweep_stella.py`, board and harness as committed here; 150 frames a dump, compared from the program's settled start): of 712 licensed dumps, 661 have a scheme the board builds (2K, 4K, F8, F6, F4 and their Super Chip forms) and 51 are skipped (E0, E7, 3F, FA, FE, DPC, CV and Supercharger, milestone 5). 95,496 frames were compared. 397 dumps agree with Stella on every frame as they stand, and 233 more once the board is made to act on writes as late as Stella does where the die has shown Stella late (colour C25, GRP C30, VBLANK C31, ENAM/ENABL C33, REFP C37): 630 of 661. The previous board's full run left 43; C38 and the harness changes above took 18 of them, and six are new (four of them the harness's start-up boundary). The 31 left, by cause: | Dumps | Agreed (with departures) | What differs | Who is right | | --- | ---: | --- | --- | | Meteor Defense (Europe), Missile War ~ Astro War (Europe) | 69/145, 70/143 | a 2x player reset at the line's end, its wrapped tail on the next HMOVE line | the board: `hmove_wrap_end` (C39); Gopher2600 hides it too | | Raumpatrouille (USA) | 22/145 | missile 0 reset at clock 150; the board draws it at 155-158, both detectors leave it out | the board: `resm_end` puts it where the board does; the detectors' cause is not isolated | | StarMaster (USA), Starmaster - International Edition (Europe) | 1/145 each | the stars (the ball, HMBL rewritten between HMOVEs on every line) | the board: `starfield` matches it; both detectors place the stars elsewhere | | Alien's Return (Europe), Mines of Minos (USA), Sea Battle (USA), Space War ~ Space Combat (USA) | 144/145, 143/144, 142/145, 143/144 | only the first one to three frames compared, all over: Stella's picture is still blank or half drawn there | neither: the harness's start-up boundary (the old harness skipped these frames); every later frame agrees | | Alpha Beam with Ernie ×3 | 144/145 | one frame, two pixels, after HMBL is written at clock 15 | Stella alone; Gopher2600 agrees with the board. Not die-traced | | Title Match Pro Wrestling ×3, RealSports Boxing ×2 | 138-143 of 142-145 | a player one pixel off on the line after HMP0 and NUSIZ0 are written at clocks 108 and 117 | Stella alone (Gopher2600's run is not usable there). Not die-traced | | Battlezone ×2 | 137/145 | a missile after NUSIZ0 and HMM0 writes | undecided: Gopher2600 differs from the board on other frames (142/146) | | RealSports Volleyball ×2 | 3/145, 6/145 | missile 1 five pixels apart | both detectors against the board. Not die-traced | | Bugs ×2, Surfer's Paradise (Europe) | 0/145 | the playfield near PF writes in mid-line | both detectors against the board. Not die-traced | | Berenstain Bears (USA) | 0/145 | three pixels near a RESP1 write at clock 42 | both detectors against the board. Not die-traced | | Cosmic Creeps, Lost Luggage, Worm War I (USA) | 141/144, 143/145, 143/145 | one or two pixels, near NUSIZ0/VDELP0, GRP0 at clock 9, RESP0 at clock 78 | not die-traced | | Rubik's Cube (USA), Spike's Peak ×2 | 126/145, 141/143, 143/145 | the start-up boundary (Rubik's), then a player near a GRP1 write (clocks 63, 99) | undecided: not GRP timing (delaying GRP four or five half clocks changes nothing); not die-traced | Where the die has been asked (C39, `resm_end`, `starfield`) it has sided with the board every time; the rest are listed for milestone 5's die cartridges, not counted as departures. `--smoke` keeps all of them in the smoke group (`tests/smoke_dumps.txt`). **Speed** (Combat, `python -m a2600_python`, load average 9): on PyPy 3.11.13, 300 frames in 32.9 s, 9.1 frames a second, about 15 % of real time; on CPython 3.14.4, 60 frames in 33.6 s, 1.8 frames a second. The figure of under one frame a second recorded before (load average 40) does not reproduce: the board as committed at `1fab307` runs the same 60 frames in 7.4 s now. The four-step HMxx history (C36) briefly cost half of PyPy's speed: as four attributes it took the TIA to 81, past the 80 where PyPy keeps an instance as a dict. It is one tuple now, the TIA has 78, and `tests/test_pypy_layout.py` keeps the board's objects under 80. ### Milestone 3: sound, inputs and the RIOT's edges (2026-10-23) **Both audio pads against the die** (`src/a2600_python/audio.py`; `scripts/die_trace.py` now scores AUD0 and AUD1 with every other pin): the `audio` trace (the volume DAC, every AUDC mode on both channels; 92,821 half clocks scored) and `audio_modes` (each AUDC mode for 80 ticks, the 9-bit polynomial's whole period, the divider; 459,445) match on both pads at every half clock, with either wiring, and every other die trace still matches with the audio pads scored too (25 traces). Settling it took the die's own wires: `probe_die.py` recorded all 2,660 over the `audio` run, the divider, pulse counter, noise register and hold latch were found by correlation with the model (pulse counter, noise register and hold latch 99.3-99.9 % of half clocks; the divider's bits 94.6-96.7 %, as they change on other half clocks than the model's, and read once a line it equals the model's on every line), and the one disagreement left was the die stepping %0000 to %1111 under AUDC C, a lockup guard the netlist does not have (C26). The tick timing (phase B on steps 77 and 301) came from sweeping the edge and phase against `audio`. Seeded faults (patched in at run time; both audio traces the gate): the two channels wired alike (6,840 bad half clocks), AUDF loaded instead of compared (66,471), Stella's divide-by-six guard (7,752), registers shifting on unenabled ticks (79,408), AUDV ignored on a pad (6,272). All five caught. **The RIOT timer against console results** (`tests/test_timer_roms.py`, RAM read after two frames, ROMs read in place from the fetched attachments): `test1.bas` shows 128246; `testTIMINT_withDelay` before $00, after $80, delay +00; all twelve #606 `TimerTest` ROMs (TIM8T/TIM64T/T1024T x read/write x first/later wrap) show the console result, the access on the wrap cycle leaving the flag set so the timer counts every cycle. This settles C6: a write on the wrap cycle keeps the flag too (the board had cleared it, as the data sheet says), and later wraps protect it like the first (the board had only tracked the first). The board's screens of all twenty #108 and #606 ROMs match Stella's digit for digit, and the four #97 ROMs (C7) show Stella's patterns, `TimerTest_003`'s staircase breaking on the rows of thrust26's console photo. Seeded faults: a write on the wrap clearing the flag, later wraps untracked, an INTIM read on the wrap clearing it, the trigger latch blind to the fire buttons: all four caught. **Inputs** (`tests/test_inputs.py`): INPT4/5 latch low under VBLANK D6 (the board's `fire` buttons now reach the latch), VBLANK D7 grounds INPT0-3, the paddle RC model (`controllers.Paddles`: the schematic's 1,800 Ω and 0.068 µF, a 0-1 MΩ pot and a half-supply trip point as labelled fits) trips at (1,800 + R)·C·ln 2, keypads (`controllers.Keypads`) pull a column low for a pressed key in a row SWCHA drives low. INPT0-3 read 0 with no paddle (C19). **ale-79's serial tests against six consoles** (`scripts/serial_699.py`: the board presses RESET, records every SWCHA write with its cycle and decodes the pin as a 57,600-baud UART would; each stream comes out at exactly the length of the consoles' files). Where all six consoles (PAL 7800, PAL Jr. '84 and '91, PAL light sixer, PAL Vader, SECAM woody) agree: | ROM | Agreed cells matched | Where the consoles split, the board sides with | | --- | ---: | --- | | `early_HMOVE` | 415 of 415 | Jr. '84, light sixer, Vader, woody (all 896 cells) | | `HMOVE_RESPx` (v1), `_P0`, `_P1` | 2,764 of 2,764 each | all but the light sixer (all 260 cells) | | `HMOVE_RESPx_M0`, `_M1` | 2,764 of 2,764 each | PAL 7800 and SECAM woody (all 260) | | `HMOVE_RESPx_BL` | 3,024 of 3,024 | (no split cells) | The first decode matched 381 of `early_HMOVE`'s 415: the misses sat at the two edges of HMOVE's window, which none of tia-fpga's cartridges reaches. This project's `hmove_cycles` die cartridge (HMOVE on every cycle, two motion values; 277,643 half clocks) showed two errors in milestone 2's model (the comb latch must sample the strobe on H@2, the motion counter must rest at 15: timing.md "HMOVE") and one tie the die settles against seven consoles (an HMOVE on cycle 74; the board follows the consoles, C27). The other `HMOVE_RESPx` misses were RESxx struck while HMOVE is still stuffing pulses: a second die cartridge, `hmove_resp0`, showed the rule (a stuffed pulse that meets the strobe or its hold is kept, not lost; C28), and with it both die traces match everywhere but the tie. Their departures are counted exactly in `tests/test_die_traces.py`; `die_board.py` places all 1,283 TIA writes of `hmove_cycles` on Sim2600's half clocks. Seeded faults: the comb latch set by the write, the set losing the tie, the motion counter resting at 0 (all caught by `hmove_cycles`), the stuffed pulse lost to the reset (caught by `hmove_resp0`). **Detectors re-run on this code**: MAME lockstep on the first million instructions of Adventure, Pitfall! and River Raid agrees on every instruction; Stella `--strict` for 300 frames agrees on Adventure (3,340,095 instructions), Pitfall! (4,160,327) and River Raid (4,580,489). Re-run after the HMOVE and RESxx fixes (`68a83fe`): Adventure 3,340,935, Pitfall! 4,144,693, River Raid 4,583,620, all 300 frames agreed (counts vary with Stella's random power-on timer). ### Milestone 2: the TIA picture against the die (2026-10-22) The TIA (`src/a2600_python/tia.py`) is a half-colour-clock model of the circuit. Judges: tia-fpga's Sim2600 traces at `7bcd84e` (Sim2600 `af3bc45`, the visual6502 10444D netlist), and traces this project recorded on the same Sim2600 with the console's Φ2 wiring (`scripts/die_carts.py`, then tia-fpga's `gen_trace.py`; 12.35 ms per half clock). **Every TIA pin on every half clock** (`scripts/die_trace.py`: PH0, RDY, SYNC, luminance, colour, blank, the D7/D6 drivers; scoring from the first line after record 2,000): | Trace (SHA-256 prefix, console wiring) | Half clocks scored | Result | | --- | ---: | --- | | `vertical` (ee622433d14e) | 32,173 | match | | `playfield` (280dc9e4b493) | 61,357 | match | | `players` (f5bcc3db1f5a) | 49,045 | match | | `missiles` (53ad0795f513) | 58,165 | match | | `ball` (bfc19a8d3e29) | 46,309 | match | | `vdel` (103c12e4a360) | 20,773 | match | | `resets_hblank` (c2631acca58a) | 87,349 | match | | `hmove` (6f24202a5836) | 34,453 | match | | `collisions` (67c3170c461e) | 43,573 | match | | Donkey Kong (USA), power-on to first picture (896b88e95c63), recorded here | 51,655 | match | | `retrigger` (d00c2c895923), this project's cartridge | 72,643 | match | | `vblank_collisions`, this project's cartridge | 29,643 | match | The same nine tia-fpga cartridges recorded with Sim2600's own wiring also match on every pin (32,175 to 87,351 half clocks each), so the write edge is the only difference between the wirings, as tia-fpga found. This project's two cartridges each found a rule none of tia-fpga's exercise: a colour register written on a falling edge shows on that half clock (C25), and VBLANK stops the collision latches setting (C24). **The whole board against Sim2600's 6507** (`scripts/die_board.py`: every TIA write after the first RSYNC on the die's half clock, address and value, with Sim2600's glue imitated, C23): all 11 tia-fpga cartridges (162 to 1,098 writes each, the two audio cartridges included), `retrigger` (423), `vblank_collisions` (182) and Donkey Kong (236). This settles RDY's sampling and the cycle grid (timing.md). **Seeded faults** (copy of the source; the gate must fail): playfield bit read on H@2 (playfield trace, 10,248 bad half clocks); RESxx window a step early (resets_hblank, 250); HMOVE grid 11 steps behind (hmove, 1,125); colour write waiting for the next falling edge (retrigger, 2); RDY sampled as the cycle begins (die_board on collisions: the next WSYNC on step 10, not 16). All five caught. **Pictures against console photos** (qualitative; a phone photo cannot be read to the pixel): `nusiz_during_draw/player8.bin` (6502.ts) against Stella #63's hardware photo of the 8 → 16 switch: same staircase where the copies widen. Stolberg's "2 or 3" (`bin00004`): the 10444D model shows **2** columns, as Stella does and as the Compendium records for its version-1 chips (C9, C10: the die answers for its own revision). Pitfall! renders its attract screen with the HMOVE comb. **Milestone 1's detectors with the real TIA** (6502-python `1ae3610`, PyPy): MAME lockstep on the three-second traces agrees on every instruction (Pitfall! 975,324; River Raid 1,067,273; Adventure 796,673), as in milestone 1. Stella lockstep with collisions and the timer compared (`--strict`, 300 frames) now runs to the end instead of stopping at the first collision read: Adventure 3,326,038 instructions, Pitfall! 4,151,779, River Raid 4,575,047 (measured at `fba9802`); re-run on the final milestone-2 code (`95f3b9b`, VBLANK gating collisions): Adventure 3,326,916, Pitfall! 4,150,417, River Raid 4,570,570, all 300 frames agreed (counts vary with Stella's random power-on timer). **Speed**: the TIA runs about 90,000 half clocks a second on PyPy 7.3.20 and CPython 3.14 alike (machine load average 60-80 during the measurement): about 1 % of real time, one frame a second on the board. Correct, not fast; speed is a `-fast` fork's job. ### Milestone 1: the CPU on the board (2026-10-22) Board at the commit that records this; 6502-python `1ae3610`; PyPy 7.3.20 (Python 3.11) and CPython 3.14.4; MAME 0.285; Stella `2c3d702` (SDL build). Cartridges read in place from the No-Intro set (`NO_INTRO_DIR`), no input pressed (attract mode). **MAME instruction lockstep, 60 emulated seconds each** (`scripts/mame_trace.py --seconds 60`, then `scripts/lockstep_mame.py`): PC, A, X, Y, P, S and cycle count agree before every instruction. | Cartridge | Scheme (source) | Instructions | Cycles | Frames | | --- | --- | ---: | ---: | ---: | | Pitfall! (USA) | 4K (detector) | 19,409,384 | 71,603,512 | 3,583 | | Combat ~ Tank-Plus (USA) | 2K (detector) | 23,308,313 | 71,603,510 | 3,583 | | Adventure (USA) | 4K (detector) | 15,578,013 | 71,603,510 | 3,583 | | River Raid (USA) | 4K (detector) | 21,402,939 | 71,603,510 | 3,583 | | Crystal Castles (USA) | F6SC (MAME softlist) | 16,641,635 | 71,603,510 | 3,596 | 96,340,284 instructions in all. Cycles per frame match mame-oracle.md's table (19,912; Combat 19,988). Collision and timer reads are replayed from MAME's log (mame-oracle.md traps 15-16). **Stella instruction lockstep** (`scripts/lockstep_stella.py --frames 600`, seed 1, CPU and RAM randomisation off, its random power-on INTIM read from its first RIOT dump): A, X, Y, S, P and the beam position (colour clock in the line) before every instruction, with the timer *not* replayed: | Cartridge | Result | | --- | --- | | Combat ~ Tank-Plus (USA) | all 600 frames: 9,988,185 instructions | | Crystal Castles (USA) | all 600 frames: 5,973,572 instructions | | Pitfall! (USA) | 58,935 instructions, to its first collision read (frame 4) | | River Raid (USA) | 64,807 instructions, to its first collision read (frame 4) | | Adventure (USA) | 22,172 instructions, to its first collision read (frame 3) | A run ends at the first collision read because milestone 1's TIA draws nothing and Stella's trace has no reads to replay; counts vary a little between runs with Stella's random power-on timer. **Seeded faults** (each applied to a copy of the source; the gate must fail): | Fault | Gate | Caught at | | --- | --- | --- | | WSYNC stalls one cycle too long | MAME, Pitfall! | instruction 14 | | TIA floating bits read as zero | MAME, Combat | instruction 945 | | Timer's first decrement a cycle late | Stella, Combat | instruction 1,329 | | Hotspots ignore write cycles | MAME, Crystal Castles | instruction 7,962,992 (frame 2,048) | | Super Chip write window stores nothing | MAME, Crystal Castles | instruction 8,411,724 (frame 2,142) | The last two need the long run; the unit tests (`tests/test_cartridge.py`) catch both at once. 27 unit tests pass on PyPy and CPython. **Speed** (River Raid, 600 frames, machine load average ~33): PyPy 226 frames/s (3.8x real time), CPython 185 frames/s (3.1x). The TIA is a stub; milestone 2 will cost far more.