# Validation: every oracle, its tier, what it can decide, what ran here Tiers, highest first: **1 hardware-captured** (measurements of a real console or chip, die-level simulations of the real netlist) > **2 manufacturer documents** > **3 hardware-corrected community documents, and tests that pass on real hardware** > **4 HDL reimplementations** > **5 emulators**. A low tier is a **detector**: it finds a difference; it never decides who is right. We have no ColecoVision and no capture rig, so nothing here plans a console experiment; what the sources leave open is listed as unknown in [handoff-brief.md](handoff-brief.md). ## Plainly - **There is no hardware-tier oracle for the video chip.** No die-level TMS9918-family work was found (no netlist, no transistor simulation, no decap study), and no test program for the TMS9918A's timing that was run on a console and published with results. - **There is no hardware-tier oracle for the SN76489A** either (Nuked-PSG is the Mega Drive's chip). - The Z80 is the exception: z80-python carries its own hardware-tier certification. - The only hardware captures of this console found are **oscilloscope pictures in Coleco's own manual**, and they are qualitative. - The nearest thing to a hardware measurement of the status-read race is on **another chip** (openMSX's V9938/V9958 tests). ## Tier 1: hardware-captured | Source | Pin | What it can decide | What it cannot | | --- | --- | --- | --- | | Oscilloscope pictures in Coleco's Technical Manual, section VII (pages VII-6 to VII-10 and on): `/INT`, `/NMI`, `/HALT`, `/WR`, `/WAIT`, `/M1`, the spinner interrupt at U7:8 "with Spinner Interface Tester in operation", each with its sweep rate | `reference/docs/ColecoVision_Technical_Manual.pdf`, sha256 `4fce2e22...` (scan, Coleco's copyright; cite only) | that `/WAIT` pulses during normal running and that the spinner interrupt is a train of narrow low spikes | widths and positions: the pictures are small halftones at 0.5 ms to 1 microsecond per division, and the `/NMI` one does not look like a once-per-frame pulse at its stated sweep (not understood: U17) | | openMSX `doc/internal/vdp-status-race`: test programs and result files from a Sony HB-F700D (V9938), a Panasonic FS-A1GT and a modified Philips NMS 8250 (V9958) | `reference/src/openMSX`, `45f17260`, GPL-2.0 (only these recordings are fetched since 2026-11-24) | how a status read near the flag's setting behaves **on Yamaha's successors**: the read returns 0, the flag stays 0, no interrupt; windows of 13/15 and 7/14 VDP clocks | the TMS9928A: "The TMS99xx VDPs weren't measured" (their words) | | Charles MacDonald's 4K/16K address table, "tested ... from a TMS9929A in an old Sega personal computer", quoted in Young 2.1 | in `sean-young-tms9918a.txt` | the DRAM address wiring in 4K mode on the PAL chip | he is "fairly sure" it holds for the 9918A/9928A; one author's report, no capture published | ## Tier 2: manufacturer documents | Source | Pin (sha256 in `scripts/pinned_files.json`) | Decides | Limits | | --- | --- | --- | --- | | **TI, TMS9918A/TMS9928A/TMS9929A Data Manual**, Nov 1982, 105 pp., OCR layer | `reference/docs/TMS9918A_..._Nov82.pdf` (`3991f0c6...`) | registers, the four documented modes, sprites, status bits and when they clear, access-window delays (table 2-2), line and frame counts (table 3-3), that asynchronous status reads lose the frame flag | silent on the undocumented modes, on what a too-early access does, on the dot at which F sets; has misprints (C5) | | TI, Video Display Processors Programmer's Guide (SPPU004), 72 pp. | `TI_VDP_Programmers_Guide_SPPU004.pdf` (`db4bc15e...`) | intended use of each mode and register; its mode table (5.1.1) lists four modes only; status-flag wording (5.2) as in the data manual; appendix B repeats table 2-2's access times | a guide, not a specification; read in the sections cited | | Karl Guttag (TI), "The TMS 9918 Video Display Processor: a brief overview", draft for the 1980 Arizona Technical Symposium, 25 pp., no text layer (OCR'd here) | `1980_Arizona_Technical_Symposium_Draft.pdf` (`2e92686e...`) | the designers' account of the plain TMS9918: three modes, the read-ahead ("the VDP always reads the next memory location after the CPU gets the current location's data"), four sprites a line, early clock = 32 pixels | no timing, no status-flag detail; describes the chip before the "A" (no Graphics II) | | Karl Guttag (a designer of the chip), "TMS9918, The First Sprite Chip", VCF Southwest 2025 | `guttag-tms9918-first-sprite-chip-2025.html` (live page) | history and design intent | no technical statement this board can use (text searched for modes, timing, status, die) | | **TI, SN76489AN data manual**, 9 pp., no text layer (OCR'd here) | `TI_SN76489AN_data_manual.pdf` (`4e0e11a4...`) | registers, N/16 counting, noise register cleared on control write, about 32 clocks of READY | noise width and taps, period 0, polarity | | **Coleco, ColecoVision Technical Manual**, 83 pp., OCR layer | `ColecoVision_Technical_Manual.pdf` (`4fce2e22...`) | the circuit in prose, parts list, board assembly drawings, the diagnostic cartridge's procedure and reference screens | says "7.19 MHz" for the crystal (C4) and "the VDP operates in a Graphics I mode" (true of the BIOS screens only); **the schematic itself (section V-1) is missing from this scan**: the PDF goes from IV-2 to V-2 | | Coleco, ADAM Technical Reference Manual, 152 pp., OCR layer | `Coleco_ADAM_Technical_Reference_Manual.pdf` (`cbaab172...`) | the ADAM, for a later board; for this one: VDP at `$BE`/`$BF`, sound "a single write-only port at location 0FFH" with "wait-request hardware", ports "80H through FFH reserved for ColecoVision use" (2.2.4-2.2.5, the port table) | read only for those sections | | **Coleco's OS-7 source listing** "REV 7PRIME", reprinted in the Coding Guide | inside `ColecoVision_Coding_Guide_Bienvenu.pdf` | what the BIOS expects of the hardware: port equates (`STRB_RST_PORT` `$C0`, `STRB_SET_PORT` `$80`, `CTRL_0_PORT` `$FC`, `CTRL_1_PORT` `$FF`, `SOUND_PORT` `$FF`), the keypad decode table, the spinner bits (bit 4 "int bit", bit 5 direction) | a reprint, OCR'd; trust it where the ROM's bytes agree | | **The OS-7 ROM itself** (two dumps we hold) | SHA-1s in [cartridge.md](cartridge.md) | whatever it executes: the header test, the frame-rate byte, the port usage | it is a program, not a specification | | **Coleco's Final Test Cartridge and Super Controller Tester** (in the library) | CRCs in [cartridge.md](cartridge.md) | they pass on a good console by construction: ROM checksum, RAM, a video pattern, the four sound channels, every controller input, the spinner | functional tests; the video and sound steps are judged by eye and ear against the manual's pictures | ## Tier 3: hardware-corrected community documents | Source | Pin | Notes | | --- | --- | --- | | **Sean Young, `tms9918a.txt`** v0.4.2 (2002) | `sean-young-tms9918a.txt` (`38798a12...`); licence not stated | undocumented modes, register masks in Graphics II, the port latch quirks, sprite and status behaviour, "I only know the VDP in the MSX system". Disagrees with TI on what a status read clears (C1) | | KiCad redraw of the console schematic, Rev J (2021) | `ColecoVision_Console_Schematic_KiCad_revJ.pdf` (`79e845d5...`); licence not stated | readable netlist of the decoders, the M1 wait flip-flop, the controller interface. A redraw: it can contain its author's mistakes, and the claims we rest on it are marked as such | | **Dan Boris's hand-traced schematic** (MicroSim, 7 sheets, PDF dated 2002-07-16) | `danb-colecovision-schematic-2002.pdf` (`f1e55f75...`); licence not stated, cite only | a second, independent tracing ("traced from actual board, accuracy can not be guaranteed"). Read here at 400-600 dpi: the I/O decoder (sheet 2), the M1 flip-flop and READY (sheet 4) and the controller buffers and spinner shapers (sheet 3) **agree with the KiCad redraw**; it adds the bit-by-bit pin map of the controller ports. Where two tracings agree we treat the circuit as settled at tier 3 | | Daniel Bienvenu, ColecoVision Coding Guide | `ColecoVision_Coding_Guide_Bienvenu.pdf` (`81c75702...`); licence not stated | BIOS entry points and RAM use (`$7020-$702A` OS sound data, stack at `$73B9`), the cartridge header, the revision history of OS-7; its prose is tier 3, the Coleco listing it reprints is listed under tier 2 | | Dan Boris's ColecoVision page | `atarihq-danb-colecovision.html` | the link to the schematic above and his spec list | | AtariAge threads (M1 delay; MegaCart FAQ; Activision PCB; fifth sprite on real consoles; alternate BIOSes; system test ROMs) | **not pinned**: AtariAge answers scripted requests with 403. Cited by title only | where the homebrew community's hardware knowledge lives; read through search summaries only, so nothing rests on them | The AtariAge threads, by URL (seen as search summaries only; nothing rests on them): `forums.atariage.com/topic/286986-m1-delay/`, `/topic/216354-colecovision-megacart-faq/`, `/topic/327053-activision-pcb-bank-switching-and-eeprom`, `/topic/230528-vdp-5-sprite-on-a-line`, `/topic/124780-alternate-colecovision-bioses/`, `/topic/322048-skip-startup-screen-bios-game-compatiblity/`, `atariage.com/forums/topic/298692-cv-rom-update-project-system-test-wip/`; and openMSX issue 2244 (the status race; its test directory is pinned). Candidates never fetched: blueMSX-libretro (`e3086eb5`), pico9918's wiki page "TMS9918 Family", Opcode's own Super Game Module specification, colecovision.dk's pages on the Super Game Cartridge and the Ultimate SD. **Test programs that pass on real hardware**: beyond Coleco's own cartridges, **none was found** for this console (searched: VDP, NMI, sprite, spinner tests; an AtariAge project to collect "system test ROMs" exists and is about Coleco's factory cartridges). FluBBa's VDP test needs Sega's Mode 4. openMSX's race programs need a V9938's status register 2. ## Tier 4: HDL reimplementations | Source | Pin, licence | Notes | | --- | --- | --- | | **F18A** (Matthew Hagerty) | `431896319f`, BSD-3-Clause | an FPGA replacement that plugs into real ColecoVisions; built to run real software. Forum accounts (seen in search summaries only) say it does "the expected behavior" where the 9918A's collision bit misbehaves under polling and that its sprite handling is "completely different". So treat it as a guide to *intended* behaviour, not to the chip's quirks. Its VHDL was pinned and only grepped | | **ColecoVision_MiSTer** (Arnim Laeuger's FPGA ColecoVision and `vdp18`) | `084cf4c8`; per-file BSD-style and GPL-2.0 | a whole console in HDL: address decode (`cv_addr_dec.vhd`), controller logic (`cv_ctrl.vhd`), a VDP (`vdp18`). Not runnable here. `cv_ctrl.vhd` read: its read multiplexer gives the same bit map as the two tracings (bit 7 the NAND output, 4 the one-shot, 5 pin 7, 6 pin 6), with the one-shot as a 12-bit counter. `cv_addr_dec.vhd` read: the same I/O blocks, **but reads gated by `/RD`**, so it cannot show U3's acknowledge read. `vdp18` not read | ## Tier 5: emulators (detectors) | Emulator | Pin, licence | Runs here headless? | Notes | | --- | --- | --- | --- | | **MAME 0.285** `coleco`, `colecop` | system binary; source `f379cd06` (sparse: the coleco driver, buses, TMS9928A, SN76496 family, `z80.cpp`/`z80.h`/`z80.lst`) | **yes** ([mame-oracle.md](mame-oracle.md)) | models the M1 wait on opcode fetches and HALT cycles but not on acknowledges (C11), and READY; line-based VDP; the spinner bits by behaviour; the lockstep reference for instruction streams and I/O order | | **Gearcoleco** (Ignacio Sanchez) | https://github.com/drhelius/Gearcoleco @ `2805e70fd56c`, GPL-3.0; source not fetched (Aubrey, 2026-11-24) | **yes**: the libretro core built here from that pin before 2026-11-24 (`reference/build-gearcoleco/gearcoleco_libretro.so`, sha1 `684db6e3`; a shipped build, or `GEARCOLECO_CORE`, for a fresh checkout), run by `scripts/libretro_run.py` | MegaCart, Activision and "OCM" mappers, Super Game Module and ADAM support (its README); wants `colecovision.rom` in `--system`; pads an 8K image to 16K | | Clock Signal (Thomas Harte) | `5eae9b61`, MIT | not built | the only one here that runs the VDP by memory-access window; its ColecoVision models the M1 wait and "thirty-one" READY clocks | | openMSX | `45f17260`, GPL-2.0 | not built | TMS9918A for MSX1, MegaCart, Super Game Module, the race model | | ares | `0b928930`, ISC | not built | readable ColecoVision core | | ColecoDS | non-commercial terms (emulator-lineage sources.md: closed box only); pin removed 2026-11-26, its tree moved out of the repository unopened | not runnable (Nintendo DS) | none: the mapper code it informed was rewritten clean-room (docs/provenance.md) | | vrEmuTms9918 | `dc409609`, MIT | not built | small line-based cross-check | | blueMSX (libretro) | not pinned | not tried | Gearcoleco covered the second-detector role; add it only if two detectors disagree and a third is wanted | ## What ran here (2026-11-11) | Run | Result | | --- | --- | | `fetch_references.py`, then `--verify` | 11 files and 9 repositories, "all pins satisfied"; on 2026-11-12 a twelfth file (Boris's schematic) and `z80.lst` in the MAME sparse set were added, fetched and verified | | `count_carts.py` on both libraries | [cartridge.md](cartridge.md): 201 and 140 images, all 32K or less | | MAME `coleco`, no cartridge, 2 s, traced | 945,993 instructions, 17,821 I/O writes; the no-cartridge screen | | MAME `coleco`, Zaxxon and the Final Test Cartridge, 5 s each, untraced | title screen; "ROM CHECKSUM D483, ROM GOOD, RAM GOOD" | | Gearcoleco, the same two cartridges, 300 frames | the same two screens as MAME; 256 x 192 frames, SHA-256 of the RGB bytes `c498d32a...` (Zaxxon title) and `11439290...` (Final Test) | | Gearcoleco, Zaxxon, 900 frames | the skill-select menu ("TO SELECT GAME OPTION, PRESS BUTTON ON KEYPAD"), SHA-256 `eef9a18a...` | | the two detectors against each other | **by eye, three screens**; no automated comparison was written (the frames differ in size by MAME's border) | Recipes: `pdftotext -layout` works on every pinned PDF except the SN76489AN manual and the 1980 symposium draft, which have no text layer (`pdftoppm -r 150 -gray -png`, then `tesseract` per page); schematic pages were read at 400-600 dpi with `pdftoppm -x -y -W -H` crops. Gearcoleco needs a directory holding `colecovision.rom` passed as `--system` (a symlink to Aubrey's BIOS copy under the git-ignored `tests/runs/system/` was used; nothing copied). Cartridges for detector runs were extracted into the ignored `tests/runs/carts/`. Not done: no sweep of the library by any emulator (the machine was loaded and the rules forbid it); no PAL run; no Super Game Module run (no image); Clock Signal, openMSX, ares not built. ## The ladder the build will climb 1. z80-python's own certification (the core's business). 2. The BIOS and Coleco's Final Test Cartridge as executable judges (tier 2): they print their own verdicts. 3. TI's manual for every register and mode, Young for the undocumented modes, with each disagreement recorded (C1, C2). 4. MAME lockstep (instruction stream, I/O order, clock counts) and Gearcoleco pictures compared by colour index, as detectors. Differences we expect and name in advance: the M1 wait on acknowledges (C11, one clock per NMI), U3's acknowledge-time read (spinner games only), the spinner's bit 7 (C12), and anything timed inside a line. 5. Everything timing-related inside a line stays **provisional, tier 5** until a hardware source appears.