# Validation: the oracle ladder and the rungs Tiers (the family's method): 1 hardware-captured or die-level > 2 manufacturer documents > 3 community documents and tests verified on hardware > 4 HDL reimplementations > 5 emulators. A low tier is a **detector**, never a **judge**. Every source was checked against emulator-lineage `docs/sources.md` on 2026-11-26; the TMS9900 and the TI-99/4A had no rows there, so every row below is new (proposed at the end). ## Oracles | Tier | Oracle | Licence / author's wishes | Pin | Decides | Cannot decide | | --- | --- | --- | --- | --- | --- | | 1 | **None known.** No die photograph analysis, netlist or published bus capture of a TMS9900 was found. The nearest is EP994A's author comparing his FPGA core's memory dumps with a real **TMS99105** (a 9900 superset) instruction by instruction (Hackaday project 20826 logs, 2018): results described in prose, the program LGPL, no capture files found | - | - | - | everything at tier 1 | | 2 | [DM] TMS 9900 Microprocessor Data Manual, May 1976 | TI's document, facts only | `pinned_files.json` (SHA-256) | semantics, flags, instruction totals (table 3), pin behaviour | where TI's own two documents disagree (C1-C5) | | 2 | [FSD] 9900 Family Systems Design and Data Book, 1978 | TI's document, facts only | same | the machine-cycle sequence of every instruction (address and data bus per cycle), cycle limits | its OCR has gaps (step numbers lost); read the page image where a step is missing | | 2 | TMS99105A/99110A data manual (1982) | TI's document, facts only | same | the superset's cycle tables, to compare with the 9900's where they claim compatibility | the 9900 itself | | 2 | TI-99/4A Console and PES Technical Data (ti99-python's pins) | TI's document, facts only | ../ti99-python | the multiplexer's byte order and wait states, READY, CRU timing on the console | the gate-level wait-state logic (scan) | | 3 | Thierry Nouspikel's TI-99/4A Tech Pages, `tms9900.htm` (timing, undocumented behaviour) | copyright retained, no licence stated; no AI objection found in the pages read | **set aside (site's wishes)**: the host (www.unige.ch) answers automated clients with a JavaScript bot challenge, even for robots.txt; the brief's 2026-11-26 rule forbids working around such a wall. Not pinned, not cited | (would decide: hardware-verified timing notes, undocumented opcodes) | - | | 3 | TI's **Diagnostics** cartridge (No-Intro "TI Diagnostics"; TI's code) | TI's copyright; player-supplied, never shipped | by SHA-1 when a library is present | a console-level self-test that passes on working hardware | per-instruction detail | | 3 | PeteE's CPU test cartridge (AtariAge forum thread "TMS9900 CPU core creation attempt"): sets the flags two ways before each case and checks every flag | **licence unknown**; its author asked others to run it on a real console | not fetched | would decide flags, if its expected values were captured on hardware | until the licence and a hardware run are confirmed: nothing | | 4 | EP994A (Erik Piehl): a TMS9900-compatible CPU in VHDL plus a 99/4A in FPGA | LGPL-3.0 (its LICENSE) | not fetched: **closed box**, would be simulated (GHDL) in emu-tools-gpl | detector for a second implementation's flags and cycle counts | anything its author did not test on silicon | | 4 | icy99 (Erik Piehl, Verilog 99/4A on iCE40) | no licence file | not fetched | - | - | | 5 | **MAME 0.285** `ti99_4a` (Michael Zapf's tms9900 device) | `cpu/tms9900/*`: BSD-3-Clause; the TI-99 drivers and buses: LGPL-2.1+ (first lines read 2026-11-26, table below) | binary 0.285 | instruction-stream detector (mame-oracle.md) | cycles, wait-state placement, C1-C5 | | 5 | Classic99 (Mike Brent, "Tursi") | all rights reserved except named components (its manual ยง1.1, read 2026-11-26 at `4197e9e`); bundles TI's ROMs under licence from TI; Windows only | not fetched | detector if run under Wine in emu-tools-gpl | - | | 5 | js99er-angular (Rasmus Moustgaard) | no LICENSE file; `package.json` says `"license": "MIT"` (read 2026-11-26 at `f3e3c65`); the repository has its own CLAUDE.md | not fetched | detector (browser) | - | | 5 | Old-Js99er | GPL-2.0 | not fetched, closed box | - | - | | 5 | thumb9900 (Troy Schrapel) | MIT | `pinned_repos.json` `6ca4be2` | a third instruction-level opinion (Thumb assembly) | timing (none modelled as far as its README says) | ### MAME's `license:` lines (first 400 bytes of each file, tag `mame0285`, 2026-11-26) | Files | Licence | Holder | | --- | --- | --- | | `src/devices/cpu/tms9900/{tms9900,tms9980a,tms9995,ti990_10}.{cpp,h}`, `tms99com.h` | BSD-3-Clause | Michael Zapf | | `src/devices/cpu/tms9900/9900dasm.{cpp,h}` | BSD-3-Clause | Raphael Nabet | | `src/devices/machine/tms9901.{cpp,h}`, `tms9902.{cpp,h}` | BSD-3-Clause | Michael Zapf | | `src/devices/machine/tmc0430.{cpp,h}` (the GROM) | **LGPL-2.1+** | Michael Zapf | | `src/mame/ti/ti99_4x.cpp`, `ti99_4p.cpp`, `ti99_8.cpp` | **LGPL-2.1+** | Michael Zapf | | `src/devices/bus/ti99/**` (gromport, internal incl. `datamux.cpp`, peb, joyport, colorbus): 31 files | **LGPL-2.1+**, except `internal/genkbd.cpp` BSD-3-Clause | Michael Zapf | | `src/devices/sound/tms5220.{cpp,h}` | BSD-3-Clause | Frank Palazzolo, Aaron Giles, Jonathan Gevaryahu, Raphael Nabet, Couriersud, Michael Zapf | | `src/devices/sound/tms5220.txt` | no header: GPL-2.0+ by MAME's rule | - | | `src/devices/machine/tms6100.{cpp,h}` | BSD-3-Clause | hap, Couriersud | | `src/devices/sound/sn76496.{cpp,h}` | BSD-3-Clause | Nicola Salmoria | | `src/devices/video/tms9928a.{cpp,h}` | BSD-3-Clause | Sean Young, Nathan Woods, Aaron Giles, Wilbert Pol, hap | The LGPL-2.1+ files are a surprise worth recording: most of MAME is GPL-2.0+ with BSD-3 files beside it, and this author chose LGPL for the TI-99 side. All of it stays closed here. ## Rungs (exit tests) | Rung | What | Judge | Exit | | --- | --- | --- | --- | | 0 | Decode table generated from [DM] 3.5 and [FSD] ch. 6 into a committed `_decode.py`; disassembler; state, trace and debug tools in z80-python's shape | [DM], [FSD] (2); MAME's disassembly text (5) as detector | all 65,536 opcodes classified (defined, or one of the four undefined ranges); the disassembler matches MAME's text on the 166,776 lines traced in Phase 0, every difference explained | | 1 | Semantics and flags, one test per row of [DM]'s status table and per instruction description | [DM] (2) | every documented row has a test; U4's compare wording settled from [FSD] | | 2 | **Machine-cycle sequences**: for each instruction and each addressing mode, the core emits exactly [FSD]'s list of (type, address, data) cycles, and its clock and access totals equal [DM] table 3 plus tables A/B | [FSD], [DM] (2) | every sequence reproduced; C1-C5 each implemented one way, tagged, with the other reading kept as a named alternative | | 3 | MAME lockstep on ti99-python's milestone 1 board: the console from reset to the title screen and one second at it, register writes per instruction | MAME (5) detector | 0 unexplained differences over 180 frames | | 4 | Test programs on ti99-python: TI Diagnostics; PeteE's test once licensed; EP994A's CPU test as a closed box in emu-tools-gpl | (3), (4) | every case passes or has a named reason | | 5 | Interrupt, LOAD, RESET, IDLE, HOLD and READY behaviour at cycle level | [DM] 2.2, 2.7, 2.9 (2) | tests of each documented edge (interrupt after BLWP/XOP not taken; LOAD during RESET; HOLD only at non-memory cycles) | | 6 | Seeded faults, each caught | the rungs above | every fault in `validation/faults.py` noticed | ## Rows proposed for emulator-lineage `docs/sources.md` (not written there; Aubrey's file) 1. TMS 9900 Microprocessor Data Manual (1976) and 9900 Family Systems Design and Data Book (1978), bitsavers: TI's documents, facts only; the machine-cycle sequences are the TMS9900's bus judge. 2. Thierry Nouspikel, TI-99/4A Tech Pages (www.unige.ch/medecine/nouspikel/ti99/): copyright retained, no licence; **set aside (site's wishes)**: the host serves a JavaScript bot challenge to automated clients, robots.txt included (2026-11-26). The author's own wishes are not known to object; the author offers the whole site as a zip for download. 3. MAME TI-99 files: `cpu/tms9900/*`, `machine/tms9901`, `tms9902`, `sound/tms5220`, `machine/tms6100`: BSD-3-Clause; `mame/ti/ti99_*`, `bus/ti99/**` (but `genkbd.cpp`), `machine/tmc0430`: **LGPL-2.1+** (Michael Zapf); `sound/tms5220.txt` no header (GPL-2.0+). Closed box only. 4. Classic99 (Mike Brent): all rights reserved but for named components; closed box only. 5. js99er-angular (Rasmus Moustgaard): no LICENSE file, `package.json` declares MIT; closed box until the author confirms a licence (no AI objection: the repository has a CLAUDE.md). Old-Js99er: GPL-2.0, closed box. 6. EP994A (Erik Piehl): LGPL-3.0, closed box (emu-tools-gpl if ever simulated). icy99: no licence, excluded. 7. thumb9900 (Troy Schrapel): MIT, code OK with notice; tier-5 detector. 8. xdt99 (github.com/endlos99/xdt99): GPL-3.0 cross-assembler; a tool (running it never touches our licence), lives in emu-tools-gpl if the rungs want hand-written test programs assembled.