# The oracle ladder **There is no hardware-tier oracle for this board.** The Z80 has hardware-captured oracles (z80test, ZEXALL, in z80-python); the MB8884's only tier-1 evidence is two short measurements on a real 8048 quoted in MAME's `mcs48.cpp` header (mcs48-python's `undocumented-behavior.md` ยง6); the 2A03 has the nesdev community's hardware-corrected suites (via famicom-python and 6502-python). | Tier | Oracle | Licence / pin | Decides | Cannot decide | | --- | --- | --- | --- | --- | | 1 | z80test, ZEXALL (z80-python); the two 8048 measurements (mcs48-python) | fetched there | the CPUs | the board | | 2 | Nintendo schematics and manuals (DKS, DKM, DJS, DK3M, RSS); Intel 8257 and Zilog Z8410 data sheets | facts only; SHA-256 pins | parts, clocks, wiring, the DMA's registers and cycles | timing the sheets leave implicit | | 2 | the board's own test mode (DKM's adjustments; DK3M "C-3 Sound Test") | the player's ROMs | smoke rows | timing | | 3 | mcs48-python's documents (Intel's manual, T48 suite once its core exists) | MIT / GPL-2.0 suite run there | the MB8884's instruction semantics | the board | | 5 | MAME 0.285: main-CPU traces with DMA and control writes, sound-CPU traces (mcs48-python's recipe), snapshots, audio | closed box | **detector** | who is right | | none | Computer Archeology's DK page | labelled "(AI)" by its site | nothing | | ## Gate cases (proposed for milestone 1) 1. Lockstep of the Z80's instruction stream with every write to 7800-780F, 7C00, 7D00-7D07 and 7D80-7D87 against MAME's `dkong` trace, from reset and at frame 600: `0 unexplained` ([mame-oracle.md](mame-oracle.md)). 2. The NMI on line 240; the DMA's programming and the 7D85 pulse at the same lines; sprite RAM after each transfer equal to MAME's (read back through a memory dump in the trace script when M2 comes). 3. Unit tests of the 8257 from I8257 (registers, F/L flip-flop, mode set, TC stop, rotating priority, status). 4. Seeded faults: DMA count off by one, NMI enable ignored, sprite bank swapped, tune latch dropped, each caught.