# Validation: the oracle ladder Tiers: 1 hardware-captured > 2 manufacturer documents > 3 hardware-corrected community documents and tests > 4 HDL reimplementations > 5 emulators. A low tier is a detector. **No tier-1 oracle exists for the SM85CPU**: no die images, no captures, no test-ROM suite, no SingleStepTests corpus (searched 2026-11-26). The top judge is Sharp's data sheet (tier 2), which does not give encodings or cycle counts. ## Oracles | Oracle | Tier | Licence, pin | Can decide | Cannot decide | | --- | --- | --- | --- | --- | | DS: SM8521 data sheet | 2 | Sharp; `reference/docs/sharp-sm8521.pdf` SHA-256 `ce783f9a...` | programmer's model, address space, data formats, addressing modes and ranges, instruction semantics in one line, interrupts and priorities, standby and clock change, `MOV R,r` = 4 cycles, 2-cycle memory accesses, prefetch | encodings, per-instruction cycles, per-instruction flags, illegal encodings | | DB96: SM8500-series pages | 2 (sibling chip, same core) | Sharp; bitsavers, SHA-256 `3c672781...` | the same core facts again (a second print of the core's description) | SM8521 specifics | | HDK opcode notes | 3-5 | MIT; GameComHDK `35daac5` | a cross-check of the decode map | anything by itself (incomplete, some rows wrong, method unstated) | | MAME 0.285 binary | 5 | BSD-3 CPU files, kept closed (decision 2) | decode (disassembler as closed-box measurement), lockstep differences, its own cycle model | hardware timing; the reset clock (C5) | | The Game.com firmware and cartridges | - (real code from real units) | read in place; SHA-1s in gamecom-python census.md | that what they use exists and behaves as they need | anything they do not exercise | ## The rung ladder (exit tests) | Rung | What | Judge | Exit | | --- | --- | --- | --- | | 0 | decode map: every first byte and operand pattern -> mnemonic, operands, length | MAME `dasm` sweep (closed box), HDK, DS Table 2 | 256 first bytes classified (instruction or illegal); every HDK row agrees or the disagreement is listed; every DS addressing mode reached by some encoding | | 1 | semantics and flags per instruction | DS p. 12, p. 51-54 | unit tests per instruction with DS's page in the docstring; flags DS does not define marked HYPOTHESIS | | 2 | register file through RP, word alignment, R8-R15 only as RR8-RR14 | DS p. 10-14 | tests on every RP value and the odd-address word case (U1 named) | | 3 | interrupts: IE/IR from the board, IM, I, priorities, vectors, IRET, the illegal trap | DS p. 23-26 | the board's request lines drive acceptance exactly per Table 3; push order per the U2 decision | | 4 | HALT, STOP, the clock change at STOP, prefetch visible at the MMU0 switch | DS p. 19, 27-28, 46 | tests for each wake source; the MMU0 one-byte-instruction rule | | 5 | timing table | MAME traces (detector) + DS bus rules | every executed opcode's cycles agree with MAME or the difference is listed with DS's reasoning | | 6 | lockstep with MAME on the firmware (and cartridges once U6 is solved) | MAME (detector) | 1 M instructions agree in PC, PS, SP, RR0-RR14, or each difference explained | | 7 | seeded faults | rungs above | each one-line fault (a flag, an addressing mode, a priority, a cycle count) caught | ## Proposed rows for emulator-lineage docs/sources.md (In this report only; the file is not edited here.) | Source | Terms | Verdict | Notes | | --- | --- | --- | --- | | Sharp SM8521 data sheet (57 pp.; archived datasheetcatalog copy, Wayback 2022-07-08) | Sharp's copyright | facts only | sm8521-python and gamecom-python's tier-2 judge; no opcode map or cycle table | | Sharp 1996 Microcomputer Data Book (bitsavers) | Sharp's copyright | facts only | SM8500-series pages 64-80: the SM85CPU core, a second print | | GameComHDK (Tpot-SSL, `35daac5`) | MIT | code OK (with notice) for its own text files; **its executables (ASM8521.EXE, LINK8521.EXE, REG8521.CFG, SM85.TYP, data.bin) are of unknown provenance (Sharp's tools?): excluded, never fetched (sparse checkout)** | community opcode notes, incomplete | | MAME `src/devices/cpu/sm8500/*` (Wilbert Pol) | BSD-3-Clause by `license:` lines (read 2026-11-26) | code OK (with notice) by licence; **closed in sm8521-python by the Phase 0 brief** (decision 2) | the only complete decoder and timing model | | MAME `src/mame/tiger/gamecom.cpp`, `gamecom.h`, `gamecom_m.cpp`, `gamecom_v.cpp` (Wilbert Pol, Robbbert) | BSD-3-Clause by `license:` lines (read 2026-11-26) | code OK (with notice) by licence; closed in gamecom-python by the brief | the Game.com board model | | MAME software list `hash/gamecom.xml` | CC0-1.0 | code OK | 23 entries; census cross-check | | alldatasheet.com, getdatasheet.com | refused automated requests (403, 410) | not used | |