# Validation: the oracle ladder Tiers: 1 hardware-captured > 2 manufacturer documents > 3 hardware-corrected community documents and tests verified on real units > 4 HDL > 5 emulators. A low tier is a detector, never a judge. **Plainly: for the KING, the Rainbow, the HuC6261 and the HuC6230, no hardware-tier oracle and no manufacturer document is in hand.** The judges are community translations (T15, from Buppu's pages) and a homebrew library's headers (LIB), both tier 3 with gaps; the Rainbow has no judge at all. The pads are the exception (PFI's logic-analyser traces, tier 1). The HuC6270 inherits pcengine-python's ladder (Hudson's manual, tier 2, and the PC Engine's test programs). | Subsystem | Best judge (tier) | Decides | Detectors (tier 5) | What nothing decides | | --- | --- | --- | --- | --- | | V810 | v810-python's ladder | the CPU | MAME, Mednafen | bus width (U1) | | Memory and I/O maps, interrupts, timer | T15, PGN (3) | addresses, register bits | MAME (BSD-3 `pcfx_intc`: closed) | priorities (U15), waits (U2) | | Pads | **PFI traces (1)**; T15 (3) | protocol, bits, device ids (C4 settled for PFI) | MAME | | | HuC6270 x2 | Hudson manual (2), pcengine-python's ladder | the chip | MAME, Mednafen | 16-bit port semantics (U21) | | HuC6261 | T15 (3), LIB `tetsu.h` (3, "tested working") | registers, YUV format, cellophane formula | MAME (BSD-3 `huc6261`: closed), Mednafen | dot clocks (U8), blend rounding (U9) | | KING BG | T15 (3), LIB `king.h` (3, "backgrounds tested working") | modes, microprogram opcodes, registers | the same | slot timing (U3), rotation (U4), C2, C3 | | KING SCSI/DMA | T15, LIB `scsi.h` (3, "tested working") | registers | the same | timing (U13) | | Rainbow | **none** | | MAME `huc6271` (BSD-3, unknown state), Mednafen | the codec (U6, U7) | | HuC6230 | T15 (3), LIB `soundbox.h` (PSG "tested working") + pcengine-python's PSG ladder | registers, PSG | MAME `huc6230` (BSD-3, cam900), Mednafen | ADPCM table (U11), rates (C1) | | CD drive | none | | MAME (SCSI CD), Mednafen | commands (U14), timing (U13, U20) | | BIOS | the BIOS itself: a program; running it is the test | that the board is complete enough | MAME reaches the menu (below) | | ## Milestones (exit tests; the brief has the full list) 1. V810 + RAM + BIOS + interrupt controller + timer: the BIOS runs to its first VDC/KING writes (MAME's first 2 frames as a lockstep detector: 443,321 instructions). 2. HuC6270 x2 + HuC6261 palettes and priorities: the BIOS draws its menu (MAME's picture as a detector). 3. KING backgrounds with microprograms; the menu's KING layers. 4. SCSI + drive + disc reading: the BIOS finds the signature track (census.md's three cases: track 2, track 4, track 5) and loads a game. 5. HuC6230 PSG and ADPCM; CD-DA. 6. Rainbow (only after open decision 3). 7. Backup memory, save states; seeded faults, each caught: interrupt controller edge-triggered instead of level; KRAM page bits ignored; microprogram NOP flag ignored; HuC6261 palette auto-increment missing; chroma key with min > max enabled; pad bits not inverted; the BIOS reading only track 2. ## What ran in this phase | Run | Result | | --- | --- | | `scripts/fetch_references.py`, `--verify` | 15 of 15 files, 3 of 3 repositories matching | | `scripts/census.py bios` | 4 of 4 MAME images found by SHA-1 (three loose copies, all v1.00) | | `scripts/census.py redump --rows` | 79 zips, 72 titles, 867 tracks; signature found on 77 (track 2: 75; tracks 4, 5: one each) | | `scripts/mame_run.py --bios v101 --frames 600 --snap --tap ...` | the BIOS menu ("checking the disc type") at 10.03 s; I/O writes in 600 frames: KING 131,144, VDC B 102,890, VDC A 87,399, HuC6261 7,981, pads 5,980, SoundBox 2,359, Rainbow 8, interrupt controller 4, timer 1 | | `../v810-python/scripts/mame_trace.py --machine pcfx --frames 2` | 443,321 instructions from reset |