# Validation: the oracle ladder Tiers (Phase 0 rules): 1 hardware-captured > 2 manufacturer documents > 3 hardware-corrected community documents and tests verified on real units > 4 HDL reimplementations > 5 emulators. A low tier is a **detector**, never a **judge**. "Matches MAME" is never a hardware claim; "matches the Python" is fidelity, not confidence. ## Per subsystem: the best judge available | Subsystem | Top tier present | Judge | What it decides | Detectors | What nothing decides yet | | --- | --- | --- | --- | --- | --- | | Z80 instructions | z80-python's own ladder (SingleStepTests captured from real chips, ZEXALL) | z80-python | the CPU | | | | M1 wait | **2** | TDB p. 10 ("1 WAIT in M1 CYCLE"); S3527 timing drawing (Tw between T2 and T3) | one wait per M1 fetch | GRAUW-Z80 (3); MAME (5) | acknowledge and HALT cycles (U1) | | CPU-to-VDP timing | **3** (hardware verdicts) | **VATT**: lost writes per loop speed, captured on 20+ real MSX1 machine-and-owner entries (via tms9918-python) | access windows with the M1 wait included (its loops are counted in MSX T-states: OUT (n),A = 12) | MAME | VDP I/O waits on MSX2 engines (U7; VATT's "Add. waits" column is the lead) | | VDP (TMS9918A family) | tms9918-python's ladder (TI manuals 2, VATT 3, MAME replays 5) | tms9918-python | the chip | | its own claims.md list | | PSG | ay8910-python's ladder (GI/Yamaha data sheets 2, die schematic read as facts) | ay8910-python | the chip | | the engines' YM2149 SEL pin (U8) | | PSG ports, joystick wiring | **2** | TDB p. 44 table 1.7.12 | every bit's use | MAME | | | PPI and keyboard | **2** | 82C55A data sheet; TDB p. 43 (bits), p. 13 (matrix) | the chip; the wiring; the matrix | MAME | rows 11-15 (U10), ghosting (U11), power-on port A (U20) | | Slots, sub-slots | **2** | TDB; TH2 5.7 | selection, the inverted FFFF read | MAME, Clock Signal | a write to FFFF reaching the sub-slot's device (U3); open bus (U4) | | Memory mapper (MSX2) | **2** | TH2 appendix 6; S1985 manual | ports FC-FF | MAME | read-back of unused bits (U5) | | Mappers | **3** where Young verified on real cartridges (Konami, Konami SCC, ASCII 8K on Valis, ASCII 16K on Xevious, Game Master 2) | MEGAROMS | bank layout, switch ranges | MAME's devices and software lists (5) | power-on bank state (U13), decode width and switch-address reads (U14) | | SCC | **3** (Young's register map and his sampling of a real chip) | SCC-SY | registers, mirrors, the formula | MAME `k051649` (5) | U15-U17 | | MSX-MUSIC / FM-PAC | **2** (DP2-3.1) for ports and waits; ym2413-python's ladder for the chip | DP2-3.1; ym2413-python | ports, detection strings, CPU waits | MAME | the FM-PAC's 7FF6 bit 4 (Young: "I don't know what bit 4 is for") | | Cassette | **2** | TH2 5.2 (formats, pulse widths in T-states); TDB (pins) | the signal and its pins | | the `.cas` container definition (U19) | | Disk | **2** for the FDC (WD279X data sheet) | the data sheet | the controller | Clock Signal for the interface map (5); MAME | each maker's interface map (U18); drive timing | | BIOS | the maker's BIOS is the reference program | running it is the test | that the board is complete enough | C-BIOS (a reimplementation: a second program to run, never a judge) | | **Plainly: no tier-1 (hardware-captured) oracle exists for the MSX board itself in this phase.** The nearest are VATT's verdicts captured on real machines (tier 3, CPU-to-VDP only) and Young's real-cartridge checks (tier 3, mappers and the SCC). No die analysis of the SCC, the MSX engines or the mapper chips was found. The first milestones are judged by the TDB, the TH2 and the data sheets, by VATT, and by real programs (the BIOS, C-BIOS, games) running at all; MAME's traces and pictures find differences to triage. ## What ran in this phase | Run | Result | | --- | --- | | `scripts/fetch_references.py` then `--verify` | 27 of 27 pinned files and 3 of 3 repositories present and matching | | `scripts/census.py nointro` | 1,153 zips, 1,153 members hashed; 1,047 of 1,151 non-BIOS images found in MAME's lists by SHA-1; 2 Kanji BIOS images | | `scripts/census.py mame` | 264 machines; all 264 ROM sets complete in `MAME_ROMPATH` by SHA-1 (692 ROMs) | | `scripts/mame_trace.py cf2700 --seconds 3` | 1,374,251 instructions, I/O per port, M1-wait clock deltas (mame-oracle.md) | | `scripts/mame_trace.py cf2700 --cart Gradius 2 --no-trace --seconds 12` | title screen reached | | OCR (`ocrmypdf`, 2 jobs) of six scanned manuals into `reference/ocr/` | the TDB, S3527, S1985, WD279X, V9958, TC8566AF searchable; page images of TDB pp. 13 and 43 read by eye | No emulator other than MAME was run; no sweep over the library. ## Seeded faults (for the board's gate later) Candidates particular to the MSX: the M1 wait missing on the second prefix byte (DD CB); the expansion register read not inverted; FFFF decoded in a non-expanded slot; the PSG port A reading the joystick port opposite to port B bit 6; port C bit 4's motor sense inverted; a Konami SCC bank switch decoded at 5800h; the SCC's 9880-98FF reading back instead of FFh; a 9900h access not mirroring 9800h; the PPI keeping its latches across a mode write.