# Validation: every oracle, its tier, its pin and its licence Tiers, best first: **(1)** real-hardware measurements and die-level simulation; **(2)** manufacturer documents and schematics; **(3)** community hardware research that shows its measurements; **(4)** FPGA cores written from the die or schematics; **(5)** other emulators. Emulators are **detectors**: they find differences. They never decide who is right. Everything below is fetched by `scripts/fetch_references.py` from `scripts/pinned_files.json` (60 files, SHA-256 each) and `scripts/pinned_repos.json` (10 repositories at full commits) into `reference/` (ignored). Run on 2026-11-11: all pins satisfied; what could not be fetched is listed under "Not obtained". ## What has run against the board (certification record, 2026-11-12) The milestone results, with counts and wall times, are kept in [build-progress.md](build-progress.md); in short: | Judge | Tier | Run on the board | Result | | --- | --- | --- | --- | | a2600-python's die traces (Sim2600), `gates.die_traces` at `28fb095` | 1, inherited | replayed into the TIA as `board.py` makes it (NTSC 7800 row's revision) | 39 / 39 (the PAL 7800 revision, as a seeded fault, fails 11) | | RIOT timer console ROMs, `gates.timer_roms(machine=)` | 1, inherited (results captured on NTSC 2600s: a pass says they reproduce on the row) | 2600 mode, both 7800 rows, the row handed to the gate since `28fb095` | 14 / 14 each | | a2600-python's board itself, smoke list (`gates.smoke_names`, 93 dumps), `gates.lockstep` + `gates.run_hashes` | differential (the same model: fidelity, not hardware) | 2600 mode, `NTSC_7800`, on a real a2600-python `System` with SALLY adopted (`cpu=`) | 93 / 93 identical (2026-11-14, at `9475aa1` and again at `28fb095`) | | Stella #699 PAL 7800 tables, all seven ROMs, `gates.serial_tables` | 1, inherited | 2600 mode, `PAL_7800` | 19,455 of 19,455 cells (2026-11-14, at `9475aa1` and at `28fb095`; before the first repin only `early_HMOVE` was run: 0 cells differ) | | 2600 dumps from both BIOS rows (`--bios`: six dumps, 60 frames' `gates.run_hashes` digests) | differential (run against run) | 2600 mode after the real NTSC and PAL BIOS | 12 / 12 hand over; digests identical across the repin `9475aa1` -> `28fb095` (2026-11-14) | | DPC oscillator in 2600 mode (Pitfall II, music on, 600 frames) | inherited, DOC (Crane's patent, Horton: an RC on the cartridge, free of the console clock) | both BIOS rows, `System2600.from_rom` passing the row's `cpu_hz` | NTSC unchanged; PAL audio differs from an NTSC-clocked DPC, pixels and registers identical (2026-11-14, status.md) | | [HF]/[SG] DMA totals and per-object costs | 3 | held-period accounting; probe programs | exact; probes within resolution | | [MT84] Figure 2 decoders, [GLD] sheets 16-18, 32 | 2 | unit tests; the docs | as recorded in gld-reading.md | | MAME 0.285 lockstep through the NTSC BIOS | 5 (detector) | Asteroids, Centipede, Ms. Pac-Man | Asteroids identical into the cartridge to its DMA-on; the other two stop at C17 | | MAME 0.285 bank and POKEY writes | 5 | Commando, Summer Games, Alien Brigade, F-18 Hornet, Ballblazer | identical in order and value | | MAME 0.285 snapshots | 5 | Asteroids, Ms. Pac-Man, Dig Dug | layouts match by eye; every compared frame differs in moving objects (not explained pixel by pixel) | | MAME 0.285 sound-register writes, 60 s (writes-only taps, session 4; rerun 2026-11-14 on the restarted POKEY core) | 5 | Commando, Ballblazer | Commando: 10,850 POKEY writes identical (unchanged by the core swap, and by the a2600-python repin to `28fb095`); Ballblazer: identical to 10.33 s, then RANDOM (C22: still $D2 against MAME's $09, unchanged); 37.8 s with RANDOM forced (session 5, not rerun) | | MAME 0.285 recorded audio (`-wavwrite`), level and pitch over time | 5 | Ballblazer, Commando | Ballblazer agrees before its divergence (3-10 s r 0.949, pitch 92.4 % on pokey-python `6ed1ffa`; 0.943 and 93.2 % on the archived core); Commando differs (handler-run sound code, open) | | pokey-python's own gates at `6ed1ffa` (the restarted core) | its certification | in its checkout, per its docs/status.md | 123 tests on CPython 3.14 and PyPy 3.11; closed-box streams 0 differences on RANDOM, fires, channel codes and /IRQ; 64 / 64 seeded faults; not rerun here | | a title's own response to a scripted light gun | 3 (behaviour) | Barnyard Blaster | aimed shot starts the game, aimed miss does not; the sensor is a fit (U22) | ## The honest summary **MARIA has no tier-1 judge that runs here.** There is no die photograph, no transistor netlist and no published logic-analyser trace. What exists: - GCC's own layout and mask-preparation files for MARIA (tier 1 in origin, **unreadable today**: a proprietary 1983 format; see below); - GCC's gate-level logic diagrams of the TIA-MARIA chip (tier 2), from which the MiSTer core's DMA state machine was transcribed (tier 4); - measurements by developers on consoles, reported in prose with their programs' logic described (tier 3), partly folded into the wiki's Software Guide; - two logic captures that are described but not published (U1). So the strongest available chain for MARIA's DMA is: the gate-level diagrams say *what the state machine does*, the measured totals (16, 24, +8 a frame, 113.5 cycles a line, +0.5 per slow access) say *how long it takes*, and the detectors show where a program's picture depends on it. The TIA and the RIOT are different: `a2600-python` brings the TIA's die judge and the RIOT's console results with it. ## Tier 1 | Oracle | What it judges | Pin | Licence | Standing | | --- | --- | --- | --- | --- | | `GCC_MARIA_Chip_Layout_and_Netlist_Artifacts.zip` | MARIA's layout: directories MARIAB (REV0, REVA-REVD, QUAL), MARIAC, PALMAR; `MARIAPAL.GDS` (3.9 MB, dated 1988, **not** GDSII: a cell-based intermediate with readable cell names such as `VCELL_VCELL_GINGER`, `PADLAY_HPAD06`) | `reference/docs/`, wiki `images/0/06/` | GCC material preserved by Mike Saarna from Curt Vendel's archive; no licence | **Not usable as a judge today.** Its README (2025-07-20) says no open tool reads it. If decoded it would be the die. Decoding is a research project of its own and is not in the milestones | | TIA die simulation (Sim2600) and the 39 die traces | the TIA in both modes | `a2600-python`'s pins (`28fb095`, the rebuilt project) | CC0 / MIT | inherited through the pinned board (handoff-brief.md, "Sibling repositories") | | Stella #699 serial tables from six consoles, **one a PAL 7800** | TIA picture rules in 2600 mode on a real 7800 | `a2600-python`'s pins | issue attachments | inherited; `a2600-python` reproduces every cell with its `PAL_7800` row (revision "PAL 7800 (#699)"), and so does this board's 2600 mode (19,455 cells) | | RIOT timer console results (Stella #97, #606) | RIOT timer edges | `a2600-python`'s pins | issue attachments | inherited (recorded on 2600s) | | kevtris's logic-analyser session on a 7800 (AtariAge 215357, 2013) | "the Maria chip's basic DMA fetching cycle times are accurate" (2 clocks per list byte, 3 per graphics byte) and the Holey-DMA behaviour on RealSports Baseball's title | `reference/atariage-forum/215357.html` (Wayback 20240920164145) | forum post | prose and photographs of a screen; no data file. Confirms the per-byte costs, not the start-up | | Captures described in [MiS] `sally.sv` and AtariAge 343425 | HALT's length and edges; WSYNC | not published | | U1. Quoted, as prose, in timing.md | ## Tier 2: manufacturer documents and schematics | Document | Use | Pin (`reference/docs/` unless noted) | Licence | | --- | --- | --- | --- | | *GCC1702B "MARIA" Chip Acceptance Specification*, March 1984, 32 pages | pin list, CTRL, memory map, DMA order ("Maria II list ordering"), DLI pulse ("one cycle after HALT- is released"), DMA start and abort edges (p. 18), timing diagrams p. 27-31 | `Gcc1702b_maria_specs.pdf` | GCC document, scanned; hosted by the 7800 Development Wiki; no licence | | *General Computer MARIA Technology*, October 1984 | block diagram, pin functions, section 2.1 (bus handover, slow clock), Figure 2 (both memory maps as decoder tables), 2.2 (DMA narrative, 242/292 lines) | `7800_Maria_Specs.pdf` | same | | *TIA-MARIA Gate-Level Logic Diagrams*, April 1984, 50 sheets | every gate and PLA of the planned combined chip: DMA control, line RAM, clock generation, video counters. The reference for U2-U4 and C6 | `TIA-Maria_Gate-Level_Logic_Diagrams.pdf` (24 MB) | same. Caveats: it is the **TIA-MARIA hybrid** design, not the 1702B as built; Curt Vendel's release note warns of "a memory hole error in these schematics" (HotHardware / Hackaday coverage of the 2019 release); no text layer | | *7800 Software Guide* (1984 scan) and *3600 Software Guide* (October 1983) | registers, list formats, modes, the original DMA ranges | `7800_software.pdf`, `3600_software_guide.pdf` | Atari/GCC, scanned | | NTSC BIOS source listing, April 1984 | the mode decision and signature check | `7800_ntsc_bios_source_code.pdf` (rough scan) | Atari | | Console schematics, NTSC and PAL | HALT and RDY wiring, INPTCTRL latch, controller ports, audio mix | `reference/schematics/Schematic_Atari7800_{NTSC,PAL}_4000.jpg` (AtariAge) | Atari, scanned | | *7800 standards* (1987), keyboard programming guide (1984) | game conventions; the unreleased keyboard | `7800_standards.pdf`, `7800_keyboard_programming.pdf` | Atari/GCC | The scans have no text layer. `tesseract` output of the two MARIA documents was used to find and quote passages, with obvious OCR misreadings corrected by hand; **the quotes were not re-read against the page images**, so check a passage on the scan before relying on its exact wording or a digit in it (C10 is one such case). OCR text is not committed. ## Tier 3: community hardware research | Source | Use | Pin | Licence | | --- | --- | --- | --- | | 7800 Development Wiki, 29 pages | the maintained Software Guide (Appendix 3 marks its measured values), A78 header specification, "Common emulator development issues", RIOT limitations, banksets, SuperGame, HSC, XM, SNES2Atari, both BIOS disassemblies, colour documentation | `reference/8bitdev-wiki/*.html` (+ `.txt`), snapshot 2026-11-11 | wiki text, no licence stated | | AtariAge threads, 12, as Wayback `id_` snapshots (the forum refuses scripts with HTTP 403) | 224025 hardware facts (the measurements), 343425 DMA cycles, 215357 the logic-analyser session, 164265 and 339785 WSYNC, 302732 fractional cycles, 86087 HALT questions, 144287 MARIA revisions, 191505 cycle budget, 160424 header history, 154745 and 318275 FPGA threads | `reference/atariage-forum/` | forum posts | | Altirra Hardware Reference Manual (2026-01-02 edition) | SALLY and HALT background shared with `a5200-python`; POKEY is that manual's subject for `pokey-python` | `reference/docs/` (live URL) | (c) Avery Lee | | `../a5200-python/docs/sally-halt.md` (sibling repository) | the shared HALT/RDY finding | sibling repository (read in place) | family | | Stolberg's bankswitching guide (v1.40, 2008) | schemes and a per-title table | wiki page | (c) E. Stolberg | | Encryption notes, BIOS disassembly | the signature | `atariage-encryption.html`, `atariage-bios7800.asm` | web pages | ## Tier 4: FPGA | Core | Written from | Pin | Licence | | --- | --- | --- | --- | | Atari7800_MiSTer (Jamie Blanks, "Kitrinx") | MARIA "made nearly entirely based off schematics" (author, MiSTer forum); `rtl/Maria/DMA.sv`: "Every cell of both PLA planes was read off the drawing"; README credits Osman Celimli "for his DMA timing traces" and testing "a zillion games ... on real hardware". `rtl/6502/sally.sv` documents the HALT handover and says which parts are fitted | `reference/src/Atari7800_MiSTer` at `0dc8ad2e3ff724af57ba84c913e035a4c97733e8` (2026-09-11) | project code MIT (README, file headers); bundled cores (T65, JT51, POKEY) keep their own | Use: the readable statement of the gate-level diagrams, and the place to look up a state-machine detail (1,588 lines of MARIA). MIT allows reading and citing; the board is still written from the documents, with [MiS] cited where it is the only source. Its fitted parts (the two-cycle handover, a patch "not on the drawing" for the palette latch) are fits. ## Tier 5: emulators (detectors) | Detector | Lineage | Ran here? | Pin | Licence | | --- | --- | --- | --- | --- | | **MAME 0.285** `a7800`, `a7800p` | Dan Boris's MESS driver; DMA accounting by Saarna 2014 | **yes**: `scripts/mame_trace.py`, [mame-oracle.md](mame-oracle.md) | `/usr/games/mame`; sources at tag `mame0285` (`f379cd06`) | BSD-3-Clause files, GPL-2.0-or-later binary; `hash/a7800.xml` CC0-1.0 | | **ProSystem** (libretro, 1.3e lineage) | Greg Stanton 2005: independent of MAME | **yes**: built with `nice -n 19 make -j4` (no problems), `scripts/prosystem_run.py` through `ctypes`; Asteroids (USA) 300 frames, picture checked by eye | `reference/src/prosystem-libretro` at `8a880142`; build in `reference/build-prosystem` | GPL-2.0 | | A7800 5.2 | MAME fork tuned on consoles | starts headless and runs an `.a78`; **trace recipe unfinished** (mame-oracle.md) | binary `a7800-linux-v5.2.tgz` (SHA-256 `32fbdb0b...5047d`), source `7a2afdc1` | MAME terms | | JS7800 | ProSystem lineage, much extended (XM, banksets, SOUPER) | not run (needs a browser or shims under node) | `reference/src/js7800` at `2c1b9146` | GPL-2.0 | | A7800DS | ProSystem lineage with 2022 timing work | not run (Nintendo DS target); its `Database.c` is read by the census | `6c108cd9`, sparse | GPL | | test7800 (JetSetIlly) | new MARIA on Gopher2600's 6502, TIA and RIOT; has a command-line debugger (`STEP`, `MARIA`, `DL`, `DLL`) | not built (no Go toolchain was run) | `d489a81f` | GPL-3.0 | ProSystem's known weaknesses as a detector: its DMA accounting is older than the measurements (the A7800DS thread says so), it starts cartridges without the BIOS, and it types headerless dumps from its own MD5 table and size rules. It is still the only running detector that shares no code with MAME, which is what a second detector is for. Detector recipes are in each script's docstring. One short run per driver was made (load was about 40); no sweeps. ## Test programs | Program | By | What it tests | Hardware results | Pin | | --- | --- | --- | --- | --- | | 7800 Utility Cart (beta) | RevEng | console diagnostics | none recorded in the archive | `reference/test_roms/7800utilitycart.beta.zip` (`.a78` and `.bin`) | | Bankset Test Suite v1 | Saarna / Quimby | each bankset variant; a picture that is right only if banksets work | described in its README; no captures | `reference/test_roms/Bankset_Test_Suite_v1.zip` | | SNES2Atari test ROM | | the adapter protocol | none | `reference/test_roms/Snes2atari_test_rom.zip` | | 7800basic samples (43 directories, source) | 7800basic authors | controllers, POKEY, banksets, split modes: programs with source that can be built | none | `reference/src/7800basic/samples` | | `7800test.bas` (NTSC and PAL) | RevEng, AtariAge 224025 | the DMA and timing "watermark" tests whose console levels the thread reports for NTSC and PAL | **yes, in the thread** (levels per test) | **not obtained**: forum attachments are behind the forum's script block and not in the Wayback snapshot | | mono's WSYNC test (`wsync.asx`, `wsync.a78`) | AtariAge 339785 | where the CPU resumes | emulator screenshot only | not obtained (attachment) | None of these comes with machine-readable expected output from a console. The build session writes its own probes (source committed) and compares them across the detectors; a difference then goes to tier 2-4 for a ruling, and where none can rule it is recorded as undecidable here (there is no console). ## Cartridge typing data | Data | Licence | Standing | | --- | --- | --- | | MAME `hash/a7800.xml` (182 entries) | **CC0-1.0** | may be committed as generated data | | No-Intro DATs, version 20241223 (BIN 243 entries, A78 117), local in the sibling rom-farmer repository's `dats/nointro/` | No-Intro | names and hashes for rows; not fetched by this repository | | `ProSystem.dat` (JS7800, 317 entries), A7800DS `Database.c` (195) | GPL-2.0 projects | read by `scripts/count_carts.py` from `reference/`; not committed, not ported | | A78 header specification v4, `a78header.asm` v4.2 | wiki / no licence stated | the format's definition | ## ROMs and BIOS Read in place, never copied (cartridge.md has the census): | Set | Path | Count | | --- | --- | --- | | No-Intro BIN, licensed | `$NO_INTRO_DIR/Atari - Atari 7800 (BIN)` | 126 zips = 124 cartridges + 2 BIOS | | No-Intro BIN, aftermarket | `.../Atari - Atari 7800 (BIN) (Aftermarket)` | 117 | | No-Intro BIN, private | `.../Atari - Atari 7800 (BIN) (Private)` | 4 | | Curated (optional, census scripts only) | `$RETROBAT_DIR/atari7800` | 150 `.7z`, all headerless, all byte-identical to a No-Intro dump (155 directory entries: 5 are folders) | | BIOS | MAME sets `$MAME_ROMPATH/a7800.zip`, `a7800p.zip`; the two No-Intro BIOS zips | NTSC 4K, NTSC 16K "prototype", PAL 16K (hashes in mame-oracle.md) | | 2600 library | as `a2600-python` uses it | for milestone 6 | ## Not obtained - AtariAge attachments (`7800test.bas`, `wsync.a78`, the DSLogic capture): the forum answers scripts with 403 and Wayback did not keep the files. - Page 2 of thread 224025 (the later Holey-DMA measurement): not snapshotted under a URL the script could pin; C3 quotes the search summary and says so. - Dan Boris's 7800 pages (`atarihq.com/danb/7800.shtml`: 404 at the URL tried). MAME's software list cites his cartridge page as a source. - The logic captures of U1. - "Maria-2 handy hints" (named in AtariAge 164265): not found. - An XM schematic, an XG-1 light-gun schematic. - A SALLY die photograph: none exists (`a5200-python` pins the absence). ## Licences in this repository MIT for what is committed. No GPL logic: MAME, A7800, ProSystem, JS7800, A7800DS, test7800 and 7800basic's tools are run or read, never copied; facts learned from their sources are written in our own words with the file cited. The census parses two GPL projects' data files at run time from `reference/` and commits neither them nor a table derived from them.