# Validation: every oracle, its tier, its pin, its licence Tiers, best first: (1) real-hardware measurements and die-level simulation; (2) manufacturer documents and schematics; (3) community hardware research with shown measurements, and test programs whose authors state hardware results; (4) FPGA cores written from the die or schematics; (5) other emulators. Emulators are **detectors**: they find differences; they never decide who is right. Pins are in `scripts/pinned_files.json` (25 files, SHA-256) and `scripts/pinned_repos.json` (3 repositories, full commit); `python scripts/fetch_references.py` rebuilds `reference/` (ignored). Fetched 2026-11-11: all 25 files and all 3 repositories. Nothing failed. Things looked for and not obtainable are listed at the end. ## What exists, honestly There is **no executable hardware-tier judge for this machine**: no transistor-level simulation of ANTIC, GTIA or SALLY, no published logic analyser capture of a 5200 bus, and no recorded run of a test suite on a real 5200. The strongest material is: - for **ANTIC**, a gate-level schematic and traced layout reverse engineered from the die (tier 1 as a document; a person must read it); - for **GTIA**, a die photograph (no schematic drawn from it, no netlist) and the manufacturer's data sheet, which includes logic sheets; - for the **system**, Atari's field service manual with schematics, and Atari's own diagnostic cartridges, which are in the local ROM set; - **Acid5200**, a test suite by the author of the most thorough hardware research, who states the tests pass on real hardware. That makes Acid5200 the practical judge for milestones 2-4, at tier 3, with [IJOR] and the manufacturer documents above it wherever they speak. This is weaker than `a2600-python` (die traces) and comparable to `pcengine-python`. ## Tier 1 | Oracle | Pin | Licence | Judges | | --- | --- | --- | --- | | **ANTIC rev. E (NTSC) reconstructed schematics**, J. Cwik ("ijor"), v1.1, 7 sheets: "The logic of these schematics was reverse engineered from the actual chip die layout" | `reference/die/AnticReSchemLayout.zip` (holds `AnticReSchem.pdf`, `AnticLayout.png/.svg`, `AnticFloor.jpg`), `reference/die/AnticLayout.svg` | not stated; read and cite, copy nothing | how HALT, RDY, NMI, the horizontal and vertical counters and the DMA clock are produced. The PDF has selectable text (signal names such as `nmiReq`, `nmiHpos`) | | The decap thread (ijor's explanations of the DMA clock and counters) | `reference/atariage-forum/172580-antic-decap.html` (Wayback 20240915084338) | forum posts | prose reading aid for the schematic | | **GTIA C014805 die photograph**, 6000 px | `reference/die/C014805_GTIA_die_shot_6000w.jpg` (visual6502) | not stated | nothing by itself: raw material only (U10) | | Scope reading of /HALT against phi2, and the discussion around it | `reference/atariage-forum/356602-antic-halt-timing.html` (Wayback 20240414174707) | forum posts | [sally-halt.md](sally-halt.md) | Not available: CTIA and SALLY die photographs (visual6502 pages pinned as absence records: "coming soon"); any netlist; ijor's POKEY schematic exists only as a forum attachment (`pokey-python`'s business). ## Tier 2: manufacturer | Document | Pin | Used for | | --- | --- | --- | | CX5200 Field Service Manual rev 3, June 1983, 170 pp (Copyright Atari) | `reference/docs/CX5200-Field-Service-Manual-rev3-1983-06.pdf` | parts lists (SALLY C014806, GTIA C014805, crystal 3.579575 MHz), POKEY pin use (Figure 1-6: K0, K5 unconnected, KR2 = softfire), 4-port and 2-port schematics, trak-ball, the diagnostic cartridge procedure with expected screens | | Atari 400/800 Hardware Manual CO16555, Oct 1980, 120 pp | `reference/docs/Atari-400-800-Hardware-Manual-CO16555-1980-10.pdf` | the register-level definition of ANTIC, CTIA/GTIA and POKEY; HALT and WSYNC in prose; DMA rules II.20-21. Text layer is OCR: quote with care | | ANTIC C012296 data sheet, 37 pp | `reference/docs/ANTIC-C012296-datasheet.pdf` | pin timing (C3) | | GTIA C014805 data sheet, 41 pp (image only, no text layer) | `reference/docs/GTIA-C014805-datasheet.pdf` | GTIA modes, the ANTIC-GTIA interface (AN0-AN2 codes), logic sheets | | POKEY C012294 data sheet | `reference/docs/POKEY-C012294-datasheet.pdf` | the board's side of the POKEY interface | | **Atari's diagnostic cartridges** (test programs by the manufacturer; in the local No-Intro set, read in place, never committed): PAM Diagnostics v1.1, v2.0, v2.3, PAM System Test v1.02, Pete's Test | by SHA-1 in `tests/detectors/census-2026-11-11.tsv` | their RAM/ROM/ANTIC/GTIA/POKEY/controller tests give pass/fail on screen; the FSM describes the expected results. MAME fails two of them (see detectors). The POKEY test of v2.3 wants a serial loopback board | ## Tier 3: community research and test programs | Oracle | Pin | Licence | Notes | | --- | --- | --- | --- | | **Altirra Hardware Reference Manual**, 2026-01-02 edition, 527 pp | `reference/docs/Altirra-Hardware-Reference-Manual-2026-01-02.pdf` | Copyright Avery Lee, all rights reserved; free to read | the specification the build works from for ANTIC (ch. 4), POKEY (ch. 5), GTIA (ch. 6), the 5200 (ch. 13), BIOS hashes (F.2). Measured on real computers by its author; captures are shown for some effects, most are stated. Not measured on a 5200 | | **Acid800 1.2 / Acid5200** | `reference/test-roms/Acid800-1.2.7z`; inside, `out/Release/Acid5200/acid5200.rom` (32K, SHA-1 `9e19ac5c4d97e4373bd68cbab649a63f2775f652`) and 48 standalone 8K ROMs, with sources (`src/Acid5200`), listings and label files | **MIT** (README.html) | "an appropriate subset of tests relocated for the 5200 SuperSystem"; tests "all pass on real hardware" (README). 20 `antic_*`, 7 `cpu_*`, 11 `gtia_*`, 10 `pokey_*`. No published real-5200 run was found (U7). Each standalone ROM runs one test and stops with the result on screen and in memory: read `src/Acid5200` for the result location before writing the harness | | Dan Boris: 4-port BIOS disassembly, trak-ball page and schematic, 5200 page | `reference/danb/*` | no licence stated | BIOS behaviour; trak-ball | | Buchholz, ANALOG 15 (1984) | `reference/docs/buchholz-transporting-programs-to-the-5200.html` (+ text copy `reference/danb/52analog.txt`) | magazine article | memory map, BIOS vectors and shadows, controller pinout, CONSOL bits | | Atari 5200 FAQ v3.3 | `reference/docs/atari-5200-faq.html` (live page; it changed between two fetches on the pin day, so the pin warns) | FAQ | connector pinouts, 2-port changes, trak-ball titles | | atariprotos.com on the diagnostic cartridges | `reference/docs/atariprotos-diagnostic.html` | web page | which revision does what | ## Tier 4: FPGA | Core | Pin | Licence | Standing | | --- | --- | --- | --- | | MiSTer `Atari800_MiSTer` (the 5200 core lives in this repository; there is no `Atari5200_MiSTer`) | `reference/src/Atari800_MiSTer` at `87b8f4093f18` | Mark Watson's a8core files: "(c) 2013 mark watson ... happy for anyone to use this for non-commercial use": **not open source**; read only | `rtl/common/a8core/antic.vhdl`, `gtia.vhdl`, `pokey.vhdl`. The upstream README credits the Altirra manual; nothing says the HDL was transcribed from a die or from Atari's logic sheets. So it is tier 4 in form but tier 3-derived in substance: a second opinion, not a judge | ## Tier 5: emulators, as detectors | Detector | Pin | Licence | Runs here | What it gives | | --- | --- | --- | --- | --- | | **MAME 0.285** `a5200`, `a5200a` | `/usr/games/mame`; sources at tag `mame0285` (`f379cd060ac3`), sparse, in `reference/src/mame` | GPL-2.0+ (driver, ANTIC, GTIA), BSD-3 (POKEY); hash files CC0 | **yes**: `scripts/mame_trace.py`, run once (Pac-Man, 8 s: 3,743,215 instructions; `tests/detectors/mame-pacman-2026-11-11.txt`) | per-instruction CPU trace with chip-register accesses and frame marks. Its ANTIC is a per-line model with lumped cycle stealing: an instruction-order detector, weak on timing ([mame-oracle.md](mame-oracle.md)) | | **Atari800** development head | `reference/src/atari800` at `98cc2dc74986` | GPL-2.0+ | **yes**: built as `libatari800` and driven through ctypes by `scripts/atari800_run.py`, run once (Pac-Man, 600 frames; `tests/detectors/atari800-pacman-2026-11-11.txt`) | per-frame screen digests (colour-register values), CPU registers, save-state blocks for ANTIC/GTIA/POKEY, RAM. How exact its ANTIC timing is was not assessed here; its monitor has a trace-to-file command that the library build does not expose | | Altirra 4.40 | source archive `reference/src/Altirra-4.40-src.7z` | GPL-2.0+ | **no**: Windows only; Wine is not installed; nothing run (U12) | the reference emulator of the community and the companion of [AHRM]; read its source for facts only | | libretro `a5200`, `libretro-atari800`, kat5200, Jum52 | not pinned | GPL / unknown | not tried | `libretro-atari800` wraps an older Atari800 and adds nothing over the library build; Jum52 has no source repository that was found | ### Atari800 build recipe (run on 2026-11-11) ```sh cd reference/src/atari800 && ./autogen.sh mkdir -p ../../build-atari800 && cd ../../build-atari800 CFLAGS="-O2 -fPIC" ../src/atari800/configure --target=libatari800 nice -n 19 make -j4 CFLAGS="-O2 -fPIC -DNETSIO" ``` then link the objects into `reference/build-atari800/libatari800.so` (the static archive cannot be linked whole: see trap 2). Traps: 1. `configure` appends `-Werror`, and `src/libatari800/api.c` then fails on a redefined `ULONG` with gcc 15. Overriding `CFLAGS` on the `make` line drops it (`-DNETSIO` must be kept). 2. `libatari800.a` contains three objects named `sound.o` and two each of `input.o`, `video.o`, `statesav.o`; `--whole-archive` reports duplicate symbols. Link the first eight members from `src/libatari800/` and the rest by path, from `reference/build-atari800/src`: ```sh objs="libatari800/api.o libatari800/main.o libatari800/init.o libatari800/exit.o libatari800/input.o libatari800/video.o libatari800/statesav.o libatari800/sound.o" for n in $(ar t libatari800.a | tail -n +9 | awk '!s[$0]++'); do objs="$objs $(find . -name "$n" -not -path "./libatari800/*" | head -1)" done gcc -shared -o ../libatari800.so $objs -lpthread -lm ``` 3. `-5200_rom FILE` files the ROM by its CRC as the original or revision A BIOS; `-5200-rev custom` then selects an empty slot and the CPU crashes at $0000. Pass `-5200-rev orig` or `a`. 4. A raw 16K image needs `-cart-type 6` or `16`; the library reports "unidentified cartridge type" otherwise. The script takes the class from MAME's CC0 list. 5. The screen buffer is 384 x 240 bytes of colour-register values, not RGB. 6. The `antic_state_t` struct in the header does not match the serialised save-state block field for field; only the first byte (DMACTL) is used. ### First detector comparison (one cartridge, not a sweep) Pac-Man (USA), 4-port BIOS: MAME executes its first cartridge instruction ($8386) at cycle 7,706,528 = frame 258; Atari800 is still in the BIOS at frame 240 and in the cartridge at frame 300. Both show the title screen at frame 600 once MAME is given its hash path. No finer comparison was made. ## Licences, and what may be copied Nothing fetched is committed. GPL sources (MAME, Atari800, Altirra) and the non-commercial MiSTer core are read for facts, cited by file, and never copied, not even into scripts. The two MAME hash files are CC0 and may seed the cartridge table. Acid800 is MIT: its ROMs may be redistributed, but the family rule is still to fetch, not commit. `scripts/count_carts.py`'s 16K walk and `scripts/atari800_run.py` are this repository's own code. ## Not found or not obtainable - A transistor netlist for ANTIC, GTIA, CTIA, POKEY or SALLY. - Die photographs of SALLY or CTIA. - A logic-analyser capture of a 5200 (or 400/800) bus. - Any record of Acid5200, or any other test program, run on a real 5200. - Atari's original BIOS source listing (a commented disassembly stands in). - A sourced list of four-port titles. - The "PAM package" [AHRM] cites for controller figures (atarimuseum.com archive page; not fetched). - siliconpr0n was not reachable (HTTP 403) and was not checked for Atari chips. - AtariAge's forum refuses scripted fetches; the two threads are Wayback snapshots, and attachments inside them (scope pictures, ijor's POKEY PDF) were not retrieved. ## Build record (the certification record, milestone by milestone) Pins for every entry unless stated: 6502-python `741419a`, pokey-python `5a06587` (the archived core; `e276d27` from session 4; the restarted core `6ed1ffa` from 2026-11-14, its own record under milestone 4), Acid800 1.2 (`reference/test-roms/Acid800-1.2.7z`, SHA-256 in `scripts/pinned_files.json`), MAME 0.285, PyPy 3.11.15 (7.3.23) and CPython 3.14.4. Raw run output is kept in `tests/detector_runs/` (ignored). ### Milestone 1: the CPU on the board (2026-11-12): passed | Exit | Judge, tier | Result | | --- | --- | --- | | (a) lockstep, River Raid ($BFFD = $FF) | MAME, detector | 10,000 cartridge instructions reached; 10,005 agreeing instructions; 1 divergence: power-on X ($00 here, $80 MAME) and P (U8), resynchronised after 3 instructions | | (a) lockstep, Pac-Man (logo path) | MAME, detector | 10,000 cartridge instructions reached after the 4.3 s logo; 1,528,208 agreeing instructions; 908 divergences: 801 an interrupt entered at a different instruction, 1 power-on registers, 106 the phase of the same BIOS wait loop ($FE8E/$FE90; the first 20 inspected) after such a resynchronisation | | (b) 29,868 cycles per frame | the board's own counter | exact (`tests/test_board.py::test_cycles_per_frame_exact_on_the_antic_counter`) | | (c) `cpu_bugs` `cpu_clisei` `cpu_decimal` `cpu_flags` `cpu_illegal` `cpu_insn` | Acid5200, tier 3 | 6 / 6 pass (`cpu_timing` passes too) | | seeded fault `drop_dummy_read` | Acid5200 | `cpu_bugs` fails ("NMI handler executed too early or late: 22"), `cpu_timing` fails ("Incorrect DEX/BNE cycle count: 4") | | seeded fault `steal_one_short` | Acid5200 | not caught by the CPU tests (both pass): the cycle tests do not exercise refresh placement; left to milestone 2's `antic_dmapattern` | Pac-Man's divergences all have one side entering the BIOS NMI handler ($FCA2) at a different instruction of the logo's wait loop ($FE8E/$FE90) than the other: the VBI NMI lands a few cycles apart because MAME lumps a line's stolen cycles and issues NMIs from a timer (docs/mame-oracle.md). They are listed (`scripts/lockstep_mame.py` prints each with both sides), not fixed. **Explained (C15, 2026-11-12):** MAME pulses the VBI NMI from its line-248 scanline callback, 7 cycles earlier in the line than its DLI, and lumps each line's stolen cycles; [AHRM] 4.8 puts both NMIs at cycle 8, and the board's placement is what Acid5200's `antic_nmist`, `antic_dlitiming`, `antic_blockednmi` and `cpu_bugs` (tier 3) pass with. Measured DLI-to-VBI entry spacing: board 24,281-24,283 cycles, MAME 24,275. MAME is off; the board is unchanged. ### Milestone 2: ANTIC's time (2026-11-12): passed | Exit | Judge, tier | Result | | --- | --- | --- | | all 20 `antic_*` | Acid5200, tier 3 | **20 / 20** pass. `antic_hscrolbug` passes since the DMA clock's request gate and the line buffer's address counter were modelled from [IJOR] sheets 4 and 6 (U15, settled); before, it failed with "Unstopped PF DMA test failed: cl=01" | | `cpu_timing` | Acid5200 | pass | | U2 (interrupts across a halted cycle) | `antic_dlitiming`, `antic_blockednmi`, `cpu_timing` | settled at tier 3: a request raised in a stolen cycle counts as raised in the CPU cycle that follows (the held clock), no `note_stall` for HALT | | U6 (NMI pulse, missed NMI) | `antic_blockednmi`, `cpu_bugs`; [IJOR] sheet 2 | settled: behaviour at tier 3 (an NMI that falls in the cycle an interrupt sequence pushes P is lost, `Board.nmi_lost_on_p_push`), the pulse from the tier-1 drawing: two cycles (decode "14-15"), NMIEN sampled during it, one cycle after NMIST | | DMA charts | `scripts/dma_charts.py --compare` against [AHRM] PDF pages 90-96, by machine (each cell's colour read from the rendered page) | every mode 2-F, every chart the manual draws (mode lines of all groups, subsequent lines of 2-5 and 6-7; wide, normal and narrow; every even HSCROL; P/M DMA on): 340 rows, 38,760 cells, **36 differ**, all one kind: virtual name taps at 107/109/111 on wide mode 2-5 mode lines with HSCROL 6-14, unmarked in the manual's chart, marked in its 6-7 charts and required by its prose (C16) | | seeded fault `steal_one_short` (the refresh at 57 given to the CPU) | `antic_dmapattern` | fails ("Incorrect timing for mode 02-a"); `antic_dlistwrap` and `antic_dlitiming` still pass with it | | seeded fault for the chart comparison | `--compare` | the first run, with the chart script showing a suppressed playfield tap in front of the missile fetch at cycle 0, reported that cell (page 91, wide HSCROL 14): the comparison sees a single cell | ### Milestone 3: the picture (2026-11-12): not met | Exit | Judge, tier | Result | | --- | --- | --- | | all 11 `gtia_*` | Acid5200, tier 3 | 10 / 11. `gtia_vdelay` fails on the documented map: it writes its P/M set-up to $D000 (C12); with `--switch gtia_at_d000=1` it passes. **Answered 2026-11-12: the test as built cannot pass on a real 5200**: the 5200 build's listing has `9D 00 D0` (`STA $D000,X`) while its own equates put GTIA at $C000; [AHRM] 13.2 puts GTIA at $C000-$CFFF; the [FSM]'s motherboard schematic (A) leaves the decoder's $D000-$DFFF output unconnected (tier 2). The exit "all 11" cannot be met as written; it is not softened here | | BIOS logo against Atari800 | Atari800, detector | frame 150 of Pac-Man: 0 of 92,160 half-clock pixels differ (window: GTIA positions $20-$DF, lines 8-247) | | smoke titles against Atari800 at frame 600 | Atari800, detector | Pac-Man: 0 differ. Centipede: the same screen with a different mushroom field (seeded from RANDOM, i.e. from POKEY's power-on phase: U8). River Raid: the same picture; Atari800 shows playfield in $22-$2B and blacks out $D4-$DD, where [AHRM] 4.3/6.2 say a wide playfield is clipped by ANTIC on the left and the visible line runs to $DD: the board follows [AHRM]. Others: see build-progress | | PAM Diagnostics v2.3 ANTIC and GTIA pages | the cartridge (tier 2), read from the screen | ANTIC: reached by scripted input (START, then 7 and START with a gap); "ANTIC DIAGNOSTICS" runs its patterns with no error text at frames 1,600 and 2,300 and returns to the menu by frame 3,400 (MAME shows "soft error 34 01" here). GTIA (2026-11-12): reached with START at 300, 6 at 460, START at 530 (`scripts/scripted_run.py`); "GTIA DIAGNOSTICS" draws four rows of players and missiles over playfield bars whose pattern changes over time, with no error text at frames 900, 1,300, 1,800, 2,400, 3,000, 3,600, 4,200 and 4,800; it had not returned to the menu by 4,800 (80 s). No expected picture exists for v2.3 (the [FSM] documents v1.1), so the judgement is "no error reported", not "correct picture" | | PAM Diagnostics v1.1 power-up screen | the cartridge, read against [FSM] 3-3 | "GTIA:NTSC", "ROM:NTSC REV 1.0", the menu of [FSM] 3-2 exactly (1 Anyvideo ... 0 Examin) | ### Milestone 4: POKEY adopted, controllers (2026-11-12): not met | Exit | Judge, tier | Result | | --- | --- | --- | | 10 `pokey_*` | Acid5200, tier 3 | 9 / 10; `pokey_twotone` fails ("Too few timer 2 interrupts on space: 0") and is filed as `docs/issue-pokey-0001-twotone-space.md` (the core's serial output side is not built) | | full `acid5200.rom` unattended | Acid5200 | runs to its summary in 1,260 frames: "Passed: 45 Failed: 2 Skipped: 0" (the visible failure is `pokey_twotone`; the other scrolled off; the standalone failures are `antic_hscrolbug` and `gtia_vdelay`) | | PAM RAM/ROM/CPU pages | the cartridges (tier 2 test programs), [FSM] 3-9/3-10 for v1.1 | v2.3 (2026-11-12, scripted: START, the digit, START): CPU 1 pass, RAM 8 passes by frame 1,300, ROM 1 pass, each with empty "HARD ERRORS" and "SOFT ERRORS" lists, OS checksum shown as 4B58. v1.1: "RAM TEST / TESTING 16K" then the prompt, error summary 0000; "VERIFY OS ROM", summary 0000 (no code 30). **Seeded fault not caught**: RAM data bit 0 stuck low from $1000 up (`scripted_run.py --fault ram-bit`; a single stuck cell at $2345 first) leaves both cartridges' summaries empty (v2.3's pass counter stays at 1 instead of reaching 8, the only visible change), although a trace shows v1.1's test reading $1000-$3FFF about 400,000 times in frames 500-1,000. So these pages are not shown to be a working judge as driven here; why is open (the tests were not disassembled). **Explained and judged 2026-11-12 (session 3), below** | | the RAM fault, explained (session 3) | the cartridges' code (disassembled with 6502-python's disassembler; bus observers on the board), tier 2 test programs | The seeded fault was reaching the tests: the board reads RAM only through `Board.ram`, the stuck bit was in place, and both tests saw it. **v1.1** ($B450-$B54D): writes a pattern through ($34),Y, reads it back, compares; at the first miscompare it jumps to $B513, saves address/expected/read, resets the stack, counts the failing data bit in $8A+bit (here $8A = 1: bit 0, failure code 0, chip U25 of [FSM] Table 3-1), sets $89 and returns to the command prompt ($A9E4). It does **not** redraw the Error Summary: the summary ($AE05) is drawn when a test command starts (seen once, at frame 466). The old harness took its picture after the test, so it showed the summary drawn before the test. Measured: with the fault, the first miscompare at $1000 in frame 504 and the prompt at once; without it, 466 to 1,148 (11.4 s; [FSM] 3-10: "approximately 10 seconds"). **v2.3** ($8D7A-$8DA5, $867C): on a miscompare it counts a soft error in $0400+code and restarts the pass from the same pattern; the lists are drawn when the test ends. A permanent fault never lets the pass finish (17 soft errors counted in frames 570-884, the pass counter stays at 1: the "only visible change"). Neither is a board fault; the harness drove the pages wrongly | | the RAM pages as a judge, with a seeded fault (session 3) | PAM v1.1 and v2.3 (tier 2), [FSM] 3-9/3-10 for v1.1, read from the screen | v1.1, `scripted_run.py --fault ram-bit` with 7+START at 400/460 and again at 700/760: Error Summary shows **"00 01"** (failure code 0 = RAM chip U25, count 1) at frame 900; the same script without the fault (second test at 1250/1310) shows an empty summary at 2,100. v2.3, `--fault ram-bit --fault-until 600` (a transient fault; START 300, 2 at 460, START 530): **SOFT ERRORS "10 02"** and the pass counter at 8 by frame 2,000; without the fault both lists stay empty (session 2). So both RAM pages catch a seeded data-bit fault when driven as their code expects: v1.1 by running a second command after the test, v2.3 with a fault that lets the pass complete. v2.3's code numbers are its own (the [FSM] documents v1.1) | | PAM controller and keypad pages | [FSM] | the keypad and trigger checks of both versions sit in the Port Test, which needs the loopback Port Board ([FSM] 3-1): out of scope, as the brief says for the serial loopback | | PAM Pokey Adjust (the pot side of the controllers) | [FSM] 3-7 Figure 3-4 (v1.1), the cartridge's own code (v2.3) | v1.1: the [FSM]'s layout (HOR VRT KB, ports 1-4); plugged ports 1-2 read 114 / 114 at rest (inside [FSM]'s 100-124), unplugged ports 3-4 the "no" glyph; port 1 follows a scripted stick exactly (20 / 200 at frame 800, 220 / 60 at 950). v2.3: frames 700 and 900 show "no" on every port while Atari800 shows 114 on all four. Disassembly of v2.3 ($98CC-$9958): each pass converts POT0-7 to decimal and prints "no" for 228, and it toggles CONSOL bit 2 (pot power, through $0240) every 16 passes, so with power off every pot reads 228 ([AHRM] 13.3) and "no" is the expected screen; on the board ports 1-2 read 114 on 11 of 33 passes (frames 528-640) and 228 on the rest. Atari800 never shows "no" because it does not model CONSOL bit 2 (a detector deviation, not a board fault) | | WAV of BIOS-to-title for two games | - | produced (Pac-Man, Missile Command, 700 frames each); both games are silent until a game starts | | audio in gameplay against Atari800 (detector) and the POKEY writes | `scripts/audio_compare.py` on `scripted_run.py --wav --pokey-log` and `atari800_run.py --wav`, the same input script (START at 700, triggers from 900), frames 600-1,500 | Pac-Man: lag +1 frame, level envelopes r = 0.939, sounding together on 708 of 758 frames, pitch agrees on 469 of 705 frames pitched on both; the board's pitch matches a register pure tone on 310 of 755 frames, Atari800's on 330. Missile Command: lag +4, r = 0.903, together on 651 of 663; pitch agrees on 99 of 512 (its sounds are noise distortions: pitch is not defined). Centipede: lag +1, r = 0.796, together on 522 of 629, pitch agrees on 276 of 434 (its play diverges: mushroom field seeded from RANDOM, U8). Misses on pitched frames are mostly the autocorrelation locking on a sub-harmonic when a game sweeps AUDF within a frame | #### Milestone 4 again, on the restarted pokey-python (2026-11-14, pin 6ed1ffa) The core above (5a06587, then e276d27) was archived on 2026-11-14 for provenance and rebuilt; the board pins the restarted core at `6ed1ffa`, wired from its `docs/adoption.md` (status.md has the glue). Fresh runs, PyPy 3.11.15, niced; raw output in `tests/detector_runs/repin6ed1/` (ignored). | Exit | Judge, tier | Before (e276d27) | After (6ed1ffa) | | --- | --- | --- | --- | | 10 `pokey_*` | Acid5200, tier 3 | 9 / 10 | **9 / 10**, the same nine; `pokey_twotone` fails with the same message (the core's serial output shifter is unbuilt, its decision 2; `docs/issue-pokey-0001-twotone-space.md` updated) | | all 48 standalone | Acid5200, tier 3 | 46 / 48 | **46 / 48** (`gtia_vdelay`, C12; `pokey_twotone`) | | full `acid5200.rom` | Acid5200 | 45 passed, 2 failed (session 3) | **46 passed, 1 failed** (`pokey_twotone`); the other old failure was `antic_hscrolbug`, fixed in session 3 | | sticks into the BIOS's POT shadows | the BIOS's own scan (measured on the board) | (not recorded) | sticks at 20/200 and 1/228 read **20 200 1 228**, empty ports 228 (Pac-Man, frame 300) | | audio in gameplay against Atari800 (detector) | `scripts/audio_compare.py`, frames 600-1,500 | Pac-Man r = 0.939, Missile Command 0.903, Centipede 0.796 (reproduced from the kept WAVs: identical figures) | Pac-Man **0.918** (identical POKEY writes in value and frame, the old Atari800 WAV; the level for the same writes changed in the core's output stage: with its `LINEAR` mix 0.922); Missile Command **0.874** and Centipede **0.727**, each against a fresh Atari800 run with a reconstructed trigger script (START at 700, a 5-frame trigger every 30 frames from 900), so not like for like: the old script's triggers were not recorded and both games' play is RANDOM-driven | | Pac-Man's POKEY register log | the board's own run | 1,578 writes | 1,578 writes, every value and frame equal; cycles moved from the START press (frame 699) to frame 833: the restarted core's keyboard scan registers the keypad press about 1,735 cycles (15 scan steps) earlier than the old core did. Neither is judged here (no 5200 keypad capture exists); the change is the core's | No 5200 program here exposed a corner of the new core beyond the known two-tone limit, so no new issue file was written. #### Save states anywhere (2026-11-14, save-state version 4) methodology.md "Save states in the gate". Reported by a5200-rust with a repro (`scripts/trak_state_repro.py` there): a save while a trak-ball rolls did not continue identically. Judge: the board itself (a restored console must equal the uninterrupted one, field by field); no hardware question is involved. Raw output in `tests/detector_runs/state4/` (ignored). | Check | Before (844355d) | After | | --- | --- | --- | | a5200-rust's repro, Missile Command, saved at frame 500 mid-roll | lag 164.0 at the save, 139.0 restored; POT0 target 18696 / 18693 | identical for ten frames (`test_missile_command_trakball_save_continues`) | | synthetic BIOS, nine save points (frame boundary, four cycles inside a frame, WSYNC pending, /IRQ risen unsynced, /IRQ held, NMI pending), pickled and in-memory restores | 10 of 11 tests fail (pot targets, cycles, RAM) | 11 of 11 pass | | mid-frame save on four titles, 6 frames on with inputs and sound | Missile Command, Centipede, Star Raiders fail; Pac-Man passes | 4 of 4 pass | | seeded save faults (`_irq_line` unsaved, lag unsaved, trak-ball pins unsaved, targets re-derived, restore by `apply()`, key set shared) | - | all 6 caught; `_irq_next`, `data_bus`, `_stack_writes` unsaved are equivalent at instruction boundaries | | Acid5200 standalone | 46 / 48 | 46 / 48, the same two misses | | pytest PyPy / CPython | 33 / 33 | 43 / 43 | | 78 images identical to Atari800 at frame 900 | 78 / 78 | 78 / 78 (Spitfire's searched offset 2,254, trap 9; fixed offset 0) | Bugs fixed (status.md has the detail): the lag not saved and stepped on restore; the pads' key sets shared with the snapshot; targets re-derived from pads changed after the frame's inputs were applied; GTIA's trigger latches re-set on restore; a state from another machine row accepted. ### Milestone 5: every format, every dump (2026-11-12): not met (no full sweep) | Exit | Judge | Result | | --- | --- | --- | | (a) every local image through the front door, read in place | the loader's own rules | 283 of 286 load by default (No-Intro 180/182, retrobat 103/104): mapping from size 124, table 112, guess 47; the 3 refusals are the walk's abstentions on two Millipede prototypes, as open decision 3 says (U16). Every `.car` built from a payload (types 4, 6, 7, 16, 19, 20) resolves to the same payload SHA-1 and table row; Bounty Bob as type 159 resolves to its type-7 twin (`scripts/formats_sweep.py`, `tests/test_cartridge.py`) | | (b) 900 frames without a jam, leaving the BIOS | detector-level | smoke list only (`tests/smoke_dumps.txt`, 36 images; the full 286-image sweep was not run on this shared machine). Of the first 15 finished: 14 leave the BIOS with a non-blank screen; PAM Diagnostics v2.0 jams at frame 361 (MAME also fails it: "crashes on Atari copyright screen"); Bounty Bob jammed at frame 260 until the loader learned MAME's fixed-first image order, after which it reaches its attract screen. Gyruss (Rev 1) runs under the walk's guess (two-chip). Seen by eye at frame 900: Bounty Bob's and Galaxian's attract screens render; the rest are in `tests/detector_runs/smoke900/` | | (b, smoke list, looked at) every 900-frame picture, by eye (2026-11-12) | detector-level; Atari800 where a picture was in doubt | 36 smoke images, all 36 run: **title** (PAM v2.3, PAM System Test v1.02, BerZerk, Bounty Bob Strikes Back! (rerun with the current loader: leaves the BIOS, no jam), Castle Crisis, Defender, Dig Dug, Gyruss, K-Razy Shoot-Out, Kaboom!, Miner 2049er, Missile Command, Moon Patrol, Mountain King, Ms. Pac-Man, Pac-Man, Pengo, Quest for Quintana Roo, RealSports Soccer, Robotron 2084, Space Dungeon, Super Breakout); **gameplay/attract** (Ballblazer, River Raid, Centipede, Pitfall II, Galaxian, H.E.R.O., Joust, Pitfall!, Pole Position, QIX, Rescue on Fractalus!, Star Wars, Star Raiders: a starfield only, which Atari800 shows too at frame 900); **wrong**: PAM Diagnostics v2.0 (garbled BIOS title line, CPU jam at frame 361; Atari800 shows the same garbled line and MAME crashes there). Diagnosis: all three take the 16K class from MAME's CC0 list (two-chip); under `--mapping 16k-one` the board shows "PAM DIAG 2.0 / COPYRIGHT 1982 ATARI" (frame 600). So the list misclassifies this dump (SHA-1 `5cc3b4245faf01c30f77ac20b0b4940f4f8f83d8`); the loader does not read the table's "measured" section yet, so the correction is not applied (next step) | | measured (observed-boot) rows in the loader (2026-11-12, session 3) | the loader's rules, unit tests; `scripts/observed_boot.py` (detector-level) | the loader reads `table.json`'s `measured` section: used where the CC0 seed is silent, the seed stands where they agree, the measured row wins where they conflict and the conflict is reported in `Cart.notes` (docs/cartridge.md "Measured rows"; tests in `tests/test_cartridge.py`). PAM Diagnostics v2.0 now loads as `16k-one` (`mapping_from = "measured"`, with the CONFLICT note) and shows "PAM DIAG 2.0 / COPYRIGHT 1982 ATARI" on the BIOS screen; two chips garble that line. **Its program still jams under both readings** (one chip at frame 330: U18, traced to the cartridge's own path; Atari800 under type 16 crashes too) | | (c) the 39 unknown 16K images under both readings (2026-11-12, session 3) | `scripts/observed_boot.py --unknown` on the board, 900 frames, both pictures (frames 450, 900) looked at by eye: detector-level | **39 of 39 settled**: 13 reach a title or attract screen only as one chip, 26 only as two chips, **0 both, 0 neither**. The wrong reading shows the BIOS screen, a black screen or a jam in every case (each picture holds both readings side by side, so every row carries its own failing control). Verdicts with what each picture shows: `tests/detectors/observed-boot-2026-11-12.tsv`, built into `table.json` "measured" by `scripts/build_cart_table.py`. Against the static walk: agrees on 36, the walk abstained on the 2 Millipede prototypes (both one chip: U16 closed) and **contradicted 1**: RealSports Soccer (Beta) (1982-08-26), walk one chip, boots only as two chips (its first contradiction; the walk had none on the 60 listed images). The chosen reading of decision 3 (the walk's guess) would have been wrong for that one dump; the measured row now overrides it. Several reach their title and then jam or stop (3-D Asteroids (Demo) jams at frame 445 with its picture up); not investigated per dump | | (a) again, after the measured rows | the loader's rules | **286 of 286** local images load by default (No-Intro 182, retrobat 104): mapping from size 124, table (CC0 seed) 111, measured 51 (40 No-Intro: the 39 plus PAM v2.0; 11 retrobat copies of the same payloads); no guess, no refusal | | (d) per-dump port/keypad/trak-ball use | - | logged by the sweep for the smoke list (CONSOL values, POT/TRIG reads); not added to the table | ### Milestone 6: the 2-port row and BIOS revision A (2026-11-12): passed (session 3) Every exit as written is met: the three titles run on the 4-port BIOS and fail on revision A with the target named ($FE95-$FEA0, all three); $BFE7 = 0 boots on revision A with the NTSC GTIA (C1, session 2); Super Breakout's four-player mode reads ports 3-4 on the 4-port row and not on the 2-port row; the `a5200a` lockstep reaches 10,000 cartridge instructions on both titles. Judges: the ROM bytes and the programs' behaviour (measured), [AHRM] F.2 (tier 3); MAME a detector. Session 2's record follows. Both rows run (`a5200`, `a5200_2port`: 2 ports, POT4-7 grounded, CONSOL bit 1 without effect, revision A BIOS found by SHA-1 in the MAME set). `scripts/bios_calls.py` records direct calls into the ROM and the ROM bytes cartridge code reads, 600 frames, no input: | Title | 4-port BIOS | Revision A | Named target | | --- | --- | --- | --- | | K-Razy Shoot-Out | runs (VBI exits through $FCB2) | JAM after 4 frames at $42BE, after four BRKs | copies the BIOS's default RAM-vector table from $FE95-$FEA0 ([DANB]: immediate IRQ, VBI, deferred VBI, DLI, keyboard, keypad vectors); revision A has it 22 bytes later, so the vectors it installs are other bytes | | Pitfall! | runs | runs into the IRQ vector 6,865 times (BRKs) instead of none | the same $FE95-$FEA0 table read | | Mountain King | runs | runs identically for 600 frames | not reproduced without input: no ROM call or code-area read seen in the first 600 frames | **Session 3 (2026-11-12):** | Exit | Judge, tier | Result | | --- | --- | --- | | Mountain King fails on revision A, with input | the ROM bytes (measured), `scripts/bios_calls.py --press/--stick` | START at 500, triggers at 700 and 900, stick moves, 1,500 frames. 4-port BIOS: reads the table at $FE95-$FEA0, leaves its VBI through $FCB2 1,062 times, runs. Revision A, same input: reads the same $FE95-$FEA0 bytes, then enters the IRQ/BRK path ($FC00 from cartridge code, with BRK vector fetches at $FFFE/$FFFF) **1,623,474 times**: a BRK storm, as K-Razy Shoot-Out and Pitfall! (session 2). Named target for all three: the default RAM-vector table the 4-port BIOS holds at $FE95-$FEA0 ([DANB]), copied by `LDA $FE95,X` (Mountain King $AA34, K-Razy $A2DF/$A30C, Pitfall! $AA3B, found statically and confirmed in the runs); on revision A those addresses hold code (`3C A9 0F 85 0D ...`), so the vectors installed point into the middle of instructions | | Super Breakout's four-player mode reads ports 3-4 on the 4-port row and not on the 2-port row | the cartridge's behaviour (measured), `scripts/scripted_run.py --plug 4 --log-ports` | "*" three times selects BREAKOUT FOUR PLAYERS; START at 700; every port's trigger pressed every 150 frames from 1,000; sticks: ports 1-2 left (1), port 3 right (220), port 4 centre; 3,600 frames on each row. **4-port**: the game selects ports 1, 2, 3, 4 in turn through CONSOL bits 0-1 (values 0,1,2,3 in frames 1,100-1,899, again 2,300-2,799 and 3,000-3,599), "PLAYER 3 UP" shows the paddle at the right (POT4 = 220 in the BIOS shadow $15), each turn is served, ball count reaches 3. **2-port**: the game selects port 3 (CONSOL value 2) at frame ~1,200, shows "PLAYER 3 UP" with the paddle pinned right (POT4-7 = 228: grounded, [FAQ] 4.10) and never continues to frame 3,600: no TRIG2 serves it. Frames in `tests/detector_runs/sbrk/serve_*` (ignored) | | seeded fault | `bios_calls.py --fault-bios a5200` (the 2-port row given the 4-port BIOS) | K-Razy Shoot-Out then runs 600 frames on the 2-port row (VBI exits through $FCB2 599 times, no jam): the "fails on revision A" check sees the fault | | the incompatibility confirmed from sources | [AHRM] F.2 (tier 3); [MAME] `atari400.cpp` (tier 5, a detector's comment) | [AHRM] F.2: the 2-port BIOS's PAL check "shifts a large amount of code in the startup screen setup, which breaks a few games which directly jump into or copy this code" (no titles named). [MAME] `src/mame/atari/atari400.cpp` line 2415, on `co19156a.a8`: "This breaks 'K-Razy Shoot-Out', 'Mountain King', and 'Pitfall!'". So the failure is the real machine's known incompatibility at tier 3 for the mechanism (copying shifted code/data), with the three titles named only at tier 5; the board's measurement (all three copy $FE95-$FEA0) agrees with both | | `a5200a` lockstep, River Raid ($BFFD = $FF path) | MAME 0.285 `a5200a`, detector; `scripts/lockstep_mame.py --machine a5200_2port` | 10,000 cartridge instructions reached; 10,005 agreeing; 1 divergence (power-on X and P, U8), resynchronised after 3 | | `a5200a` lockstep, Pac-Man (logo path) | the same | 10,000 cartridge instructions reached after the logo; 1,425,199 agreeing; 899 divergences: 770 an interrupt entered at a different instruction, 1 power-on registers, 128 the NMI entry ($FCA2) against the logo's wait loop, here at $FEA4/$FEA6 (22 bytes after the 4-port $FE8E/$FE90): the same C15 picture as milestone 1 | C1 measured: a synthetic 4K cartridge with $BFE7 = 0 on the logo path enters its code at frame 258 on both rows (revision A's PAL test sees the NTSC GTIA's $0F and skips the $BFE7 check). Not done: Super Breakout's ports 3-4 on the two rows, and the `a5200a` MAME lockstep. ### Milestone 7: trak-ball, frontend, sweep (2026-11-12, session 3): not met | Exit | Judge | Result | | --- | --- | --- | | CX53 model (U11) for the 12 [FAQ] titles | none (detector-free observation) | `controllers.TrakBall`: speed to deflection through a lag, centre while CONSOL bit 2 is low; constants labelled choices (U11 open). Exercised on 1 of 12 titles: Centipede's shooter follows a scripted roll left, right and up (`scripted_run.py --trak`), a stick run without input stays centred. **Session 5: all 12 exercised, 10 follow, 2 not shown (U21): below** | | pygame-ce window on PyPy | - | not built: pygame-ce is in neither venv; installing it was refused by the permission system this session | | frames per second, CPython and PyPy | the board's own clock | Pac-Man frames 61-300, load ~14: PyPy 3.11.15 16.9 frames/s (504 k cycles/s), CPython 3.14.4 2.6 frames/s (78 k cycles/s) | | one full sweep against Atari800 at a fixed frame, divergence table, failures kept | Atari800 (detector) | `scripts/sweep_atari800.py --frame 900`: every local image, 182 distinct payloads (retrobat copies of No-Intro payloads counted once), Atari800 given the class the loader chose. **77 identical; 26 differ by at most 1 % (921 of 92,160 half-clock pixels); 79 by more; 0 Atari800 failures; 2 board jams** (3-D Asteroids (Demo) at 445 after drawing its field, PAM v2.0 at 330, U18). Table: `tests/detectors/sweep900-atari800-2026-11-12.tsv`. Kinds seen, from the few pairs looked at: a whole-picture edge or window difference with identical content (Beamrider: exactly 40 half-clocks on all 240 rows, 9,600; the same count on Popeye, Zaxxon, Sport Goofy, Jungle Hunt (Beta): the wide-playfield edge already explained for River Raid in milestone 3), random-seeded content (Centipede, U8), and real divergences of program state (Congo Bongo: the board waits at "ENTER: 1 FOR 1 PLAYER", Atari800 is in its attract play). Not classified per image. The 79 are the next smoke list: `tests/smoke_next.txt` | #### The 12 trak-ball titles (2026-11-12, session 5) `scripts/trak_titles.py`: the CX53 on port 1 from power-on, START or the button into play, then the ball rolled right, left, right, left (slow 3, fast 8 encoder counts per frame: deflections of 37 and 100 counts), then up, down, up, down, then the lower and upper buttons five times each. The judge is the game's own RAM (addresses that move one way on both right or up phases and the other way on both left or down phases) or the picture at the end of each phase. Where a title did not obviously follow, the same script was run with a stick deflected the same amount (`--stick`) as a control. All 12 [FAQ] titles are in the local set (Millipede: the 1984-01-31 prototype). Frames: `tests/detector_runs/trak7/` (ignored), run `p1` unless named. | Title | Follows | How judged | | --- | --- | --- | | Centipede | yes, both axes | RAM $001F/$0030/$00F4 (shooter X: +76, -150, +151, -151); Y from the picture (the shooter's zone at the bottom) | | Galaxian | yes, X (the game has no Y) | RAM $0047/$005D (+80, -118, +118, -118) | | Kaboom! | yes, X, as a position | picture: the buckets stand where the deflection puts them and go back to the centre when the ball stops (the game reads POT as a paddle position, RAM $007A copies it) | | K-Razy Shoot-Out | yes at fast speed, both axes; not at slow | picture (run `p3`): full deflection walks the player right, left and up; a 37-count deflection does not move him, and neither does a stick at 37 counts (`p5`): the game's own dead zone | | Millipede (Proto 1984-01-31) | yes, both axes | RAM $05A1/$05A5 (X); picture for Y (run `p2`); the starting-score menu also follows X | | Missile Command | yes, both axes | RAM $0056 (X: +73, -154, +154, -154), $0053/$0057 (Y) | | Pole Position | yes, X (steering) | picture (run `p2`, lower button held for speed): the road swings under the car right and back left | | RealSports Baseball | not shown | runs `p2`/`p3`: RAM $00CA/$00CB/$00CD move with the ball exactly as with the stick; the frames differ only in a pitch's outcome. U21 | | RealSports Football | not shown | runs `p6`/`p7`: the game's own trak-ball test flags port 1 ($02AF = $80, centre $72 = 114) and not a stick; during the scripted play the frames are pixel-identical under the trak-ball and the stick. U21 | | RealSports Soccer | yes, both axes | picture (run `p10`; port 2 kicks off, the title is two-player): port 1's light-pink player runs right, left, up and down with the ball; the game's own test flags the CX53 ($07CF = $80) | | Space Invaders | yes, X (the game has no Y) | RAM $00B5 (+99, -111, +111, -111) | | Super Breakout | yes, X | RAM $0027/$004A (paddle: +64, -114, +113, -117) | 10 of 12 follow; 2 are not shown and are no evidence against the model (a stick does no better there). No title needed a joystick-mode trak-ball or another sampling rate: the CX53 has no joystick mode ([FSM] section 7 describes only the speed-to-current circuit), and every title read the pots once a frame through the BIOS shadows. The model was not changed (U11 records what the schematic says about its constants). The exit is still not met: no window (pygame-ce not installable here). Before session 5: one CX53 title of 12, no window. (The divergence table's 79 large rows were explained in session 4, below.) #### The 79 large divergences explained (2026-11-12, session 4) The 79 rows of `tests/smoke_next.txt` include the two jams (77 + 26 + 79 = 182). Every pair was put on a contact sheet (board, Atari800, difference) and looked at, then each class was proven by measurement. Two facts about the detector came first: - **The sweep's alignment search is unreliable on full-width screens.** `best_alignment` compares every 8th row and keeps the first minimum, so a full-width background box or a sparse screen picks x = 22 or 36 (or y = 7) instead of the true (32, 8). Every pair was recompared at (32, 8) with the edge columns $22-$2B and $D4-$DD counted apart. - **Atari800 seeds its randomness from the clock.** Eight Centipede runs 1.3 s apart gave eight different frames 900; back-to-back runs in the same second agree (measured, black box). So the sweep's Atari800 picture of any RANDOM-driven title is one sample. Six runs 1.2 s apart were taken for each title with an interior difference. | Class | Count | Titles | How it was proven | | --- | --- | --- | --- | | Edge columns only, or alignment artefact | 35 | Barroom Baseball (2), Battlezone (2), Beamrider, Carol Shaw's River Raid, Gorf, Joust (2), Jungle Hunt (3), Koffi, The Last Starfighter (2), Moon Patrol (5), Pole Position (Beta), Popeye, Quest for Quintana Roo, RealSports Baseball (2), RealSports Football, RealSports Tennis, Spitfire, Sport Goofy (2), Star Wars Death Star Battle, Super Cobra, Xevious, Yellow Submarine, Zaxxon | At (32, 8) the interior is identical (Spitfire is identical everywhere: its y = 7 was the search). [AHRM] 6.5: horizontal blank is pos < $22; 4.3/6.5: the wide playfield's visible part is $2C-$DD. Zoomed crops (Beamrider, Rescue on Fractalus!, Joust): Atari800 blacks out $20-$2B and $D4-$DF, or shows playfield in $22-$2B (River Raid, milestone 3); the board shows background and P/M from $22 and the wide playfield's right-edge garbage that [AHRM] 4.14 "Artifacts with wide playfields" describes | | Seed-dependent content (POKEY RANDOM) | 32 | Asteroids Proto (2), Astro Chase, Astrogrover, Centipede, Choplifter! (4), Dreadnaught Factor, Frogger, Frogger II, Galaxian (2), H.E.R.O., K-Razy Shoot-Out, Meteorites, Miner 2049er, Pole Position, QIX, Space Invaders, Space Race, Stargate (3), Xari Arena (6), Zone Ranger | Atari800's six runs differ among themselves in the same places, and the board's distance to its nearest Atari800 run is within Atari800's own nearest-run spread (ratio to the median 0.75-1.64; Galaxian (Alt) and Asteroids (Final) within the largest). K-Razy's and Miner 2049er's title colours change on every Atari800 run; Frogger and Pole Position match the board exactly in some runs | | Power-on state (U8), not the seed | 2 | Keystone Kapers, Countermeasure | Atari800 invariant (Keystone) or bimodal (Countermeasure); the board's own frame 900 changes with ANTIC's power-on line (131 instead of 0): 524 and about 16,000 pixels. Keystone's ceiling blocks sit at three different x in board, Atari800 and MAME; they are playfield bytes the program writes | | Atari800 departs from a tier-3 test | 3 | Ballblazer (2), The Activision Decathlon | **Ballblazer**: board and Atari800 agree on every frame to 750; at 750 the game releases POKEY from init (SKCTL $00 to $02, line 211) and reads RANDOM 4,270 cycles later, so the value depends only on the polynomial after init ([AHRM] 5.5, "begin counting immediately"). Acid5200 `pokey_noise` asserts those values and passes on the board; run as a black box it **fails on Atari800** ("Incorrect 9-bit PRNG value: $81 != $95") **and on MAME** ($DE). **Decathlon**: line 73 widens the playfield (DMACTL $3E to $3F) on cycle 16, after the wide deadline and by the normal one: [AHRM] 4.11 "the playfield will not start at all"; the board shows background, Atari800 shows PF1 at $C2-$D3; `antic_pfstarttiming` passes on the board and **fails on Atari800** ("Character mode DMACTL late test failed: stride=16"). The 2 other Decathlon pixels move with power-on | | KBCODE's power-on value (U20) | 1 | Congo Bongo | MAME agrees with the board; with KBCODE preset to $FF the board matches Atari800 (124-316 pixels, inside its spread) | | Neither detector runs it | 1 | Bounty Bob Strikes Back! | Atari800 shows a garbled BIOS screen at frame 900 under type 7 in either bank order; MAME is black; the board shows the title | | **Board fault, fixed** | 3 | Rescue on Fractalus! (2), Behind Jaggi Lines! (Beta) | below | | Jams | 2 | PAM Diagnostics v2.0 (U18), 3-D Asteroids (Demo) (U19) | U18 as recorded; U19: the demo reads the stick before it powers the pots | **The fault: players and missiles in GTIA modes.** Board and Atari800 agree on every frame of Rescue on Fractalus! to 711 and RAM agrees through 737 (except the POT shadows and $0244), yet from 720 the canopy ticks sit one colour clock right. They are fifth-player missiles in GTIA mode 10 (PRIOR $94, GRAFM $66, HPOSM2/3 $3B/$39): M3's bit belongs on $3A, M2's on $3B. The board resolved players and missiles only on the odd colour clock of each pixel pair and painted that over the pair. [AHRM] 6.5 gives positions colour-clock resolution and 6.9 widens (and for mode 10 delays) only the playfield pixel, so the board was wrong. Fixed in `gtia.py` (commit e5a875c); directed test `test_missiles_keep_colour_clock_positions_in_gtia_modes` (fails on the old GTIA). After the fix the three titles differ from Atari800 by 20-84 pixels, the seed-dependent gauge row, as Atari800's runs differ among themselves (16-48). Probes that ruled other causes out: shifting POKEY's polynomial phase (8 offsets) left the 336 tick pixels unchanged; so did pot power forced on. Ruled out on the way: a lockstep against MAME on 3-D Asteroids (stopped: the RAM comparison found the cause first); the one-chip $4000 mirror (C4) for 3-D Asteroids (it jams without the mirror too). #### The bounded rerun after the fix and the repin (2026-11-12, session 5) The 79 classed images and the 77 identical ones (156), `scripts/sweep_atari800.py --list --raw`, 4 shards, PyPy, after the GTIA fix (e5a875c) and the POKEY repin (b1036a7). The script now also compares every pair at the fixed offset (32, 8) and counts the edge columns $22-$2B and $D4-$DD apart (columns `interior` and `edge`). Table: `tests/detectors/sweep900-atari800-2026-11-12b.tsv`. | Result at (32, 8) | Count | Notes | | --- | --- | --- | | identical | 78 | **all 77 identical before stay identical**; Spitfire too (the search's offset gives it 2,254: trap 9) | | interior identical, edge columns differ | 35 | the 33 other edge-class images, and Frogger and Pole Position, whose Atari800 sample this time matched the board's interior (seed class) | | interior differs, seed-dependent class | 31 | the 30 other seed-class images, and Pole Position (Beta) (below) | | other | 12 | power-on 2 (Keystone Kapers 724 interior: the ceiling blocks of lines 85-90; Countermeasure), Atari800 fails the Acid5200 test 3 (Ballblazer x2; Decathlon: 16 pixels of PF1 at $C2-$D3 on line 73 plus 2 power-on pixels, as classed), KBCODE 1 (Congo Bongo), uncompared 1 (Bounty Bob), the fixed fault 3 (Rescue on Fractalus! x2 and Behind Jaggi Lines!: 52-84 interior pixels, the gauge row), jams 2 (PAM v2.0 at 330, 3-D Asteroids at 445, as before) | One row departed from its class: **Pole Position (Beta)**, classed "edge only" in session 4, showed 336 interior pixels (road stripes on lines 144-195, the cars on lines 49-54 and 85-90). Six further Atari800 runs 1.3 s apart, taken ten minutes later, agree among themselves and match the board's interior exactly (0 interior pixels); the sweep's sample is the one that differs. So Atari800's picture of this title is seed-dependent too (trap 8), and the board's frame is one Atari800 produces. No row needed a board change. `tests/smoke_next.txt` now holds only PAM v2.0, 3-D Asteroids (Demo), Congo Bongo and Bounty Bob. The 900-frame jam check of milestone 5 (b) is covered by this sweep for every distinct payload: 180 of 182 run 900 frames without a CPU jam. Corrections the milestone 2 and 3 judges forced, each recorded as a C entry: the cycle numbering and the NMIEN disable deadline (C11); GTIA positions 2c/2c+1 for ANTIC cycle c, which also fixed the P/M write timing (C11); a refresh blocked by the line's playfield DMA waits for the first free cycle (the stop cycle) as [AHRM] says.