# Validation: the oracle ladder **No hardware-tier oracle exists for these boards in the family's hands.** No SNK board, no capture of one, no test ROM with verdicts from real units. The top of the ladder is SNK's own schematics (tier 2) for the A5001 family, and Yamaha's documents for the sound chips. ## Per subsystem: the best judge available | Subsystem | Top tier in hand | Judge | Detectors | What it cannot decide | | --- | --- | --- | --- | --- | | Z80 instruction behaviour | 1 (z80-python's own ladder) | z80-python's rungs | | nothing new here | | Shared-RAM arbitration, CPU-to-CPU interrupts (U2, U4) | **2** | SCH-TNK3 sheet "CPU" (A5001 only) | MAME traces (5); RndMnkIII's cores (4) | maps B and C (no schematics); waits, if any, on later boards | | Video timing (U1) | **2** for A5001 | SCH-TNK3 video sheets; for the 400-wide boards the `horizon`/`vertical` PROMs in the romset (data) | MAME (5) has none | Ikari-family timing | | Layers, sprites, line buffers | 2 (A5001); 1 (OBSERVED, McPhail's Ikari repair) | SCH-TNK3; the repair log for Ikari's two generators | MAME (5), RndMnkIII (4) | priority details on maps B and C | | Collision ports (U8) | none | none | MAME (5); the PAL dumps (data) | everything: a gap | | Rotary input (U7) | 2 for A5001's input path | SCH-TNK3 "SOUND, I/O"; the dumped rotary PROMs (data) | MAME (5), RndMnkIII (4) | undumped PROMs' contents (ikari, bermudat, worldwar) | | YM3526, YM3812, Y8950 | 2 (DS, AM); 1 for the two ROM tables (OPLx read-out of a YM3812) | Yamaha's manuals | jtopl (4), Nuked-OPL3 (5, OPL3), ymfm (5, BSD-3), MAME (5) | envelope and ADPCM edge timing: no capture | | AY-3-8910A | as ay8910-python | ay8910-python's ladder | | | ## What ran in this phase - `fetch_references.py`: 9 of 9 pinned files ok (`--verify`). - `census.py`: 55 of 55 `snk.cpp` sets present and complete by CRC; 2 of 2 `mainsnk.cpp`. - MAME: six map dumps, two 3-frame traces (main, sub), one 20-second snapshot ([mame-oracle.md](mame-oracle.md)). One process at a time, CPUs 24-31. ## The gate (for the board, later) - **Z80 lockstep against MAME for the boot**, main and sub, per instruction, as far as MAME agrees with SCH-TNK3; MAME is a detector, so a difference is investigated against the schematic, never fixed toward MAME by default. - **Shared-RAM access log**: every main and sub access to the shared RAMs, with the cycle, equal between x-python and x-rust (the charter's per-cycle proof); the log is also what shows any wait the arbitration inserts. - **Pictures**: frame hashes at fixed frames of attract mode (tnk3, athena, ikari, victroad); against MAME only as a detector. - **Seeded faults** each gate must catch: the sub's NMI never raised; the shared RAM decoded at the main's addresses for the sub (map A); the sound latch not cleared on read; the rotary value off by one position; a YM3526 timer that never overflows; a sprite line buffer that does not swap; the Y8950 ADPCM end flag never set; the Ikari collision port returning 0; the text layer drawn under the sprites.