# The oracle ladder Tiers (the family's method): 1 hardware-captured (or die-level) > 2 manufacturer documents > 3 hardware-corrected community documents and tests that pass on hardware > 4 HDL > 5 emulators. A low tier is a detector, never a judge. We own none of this hardware; no probes are run. ## Per chip: the highest tier that exists | Part | Top tier | The oracle | What it decides | What it cannot | | --- | --- | --- | --- | --- | | 8088 instructions | **1** | SingleStepTests/8088 v2 (MIT; AMD D8088, Arduino8088; corpus in `../i8086-python/tests/8088_test_vectors`, pin `aea84484`; this repo pins the README/LICENSE/metadata at `a5ac055e`, which differs only in README.md) | registers, flags, memory, access order, and **every clock's bus state, T-state and queue status**: 3,007,000 cases | wait states, DMA/refresh, interrupts, TF, HLT, WAIT, LOCK (README: "No wait states ... The interrupt and trap flags are not exercised") | | 8088 on the XT's bus with refresh | 1 (method), 3 (what is kept) | reenigne's XTCE: tests generated by `xtce/gentests`, run on a real 5160 through xtserver, timed by the PIT, failures captured by an ISA bus sniffer (`8088/isa_bus_sniffer`); refresh period and phase are test parameters | the instruction timing with refresh and the 5160's wait states, through XTCE as a reference implementation (public domain) | the hardware results themselves are not in the tree, only the generator, the emulator and failure lists (`xtce/gentests/fails.h`); so XTCE is a tier-3 detector until results are captured (U3) | | 8088 interrupts | 2 | Intel manuals | the INTA sequence, priorities, shadows | no hardware corpus (i8086-python validation.md says the same) | | 8253 PIT | 2 | Intel 8253 sheet (I83 PDF p.668-677) | the modes and gate rules | the load-clock and readback edge cases (U1); reenigne's `8088/8253`, `8088/pit` are hardware test programs without stored results | | 8259A | 2 | Intel 8259A sheet | everything the PC uses | spurious IRQ7 timing on the 5150 | | 8237A + refresh | 2 (chip), 1 (method, XTCE) | Intel 8237A sheet; IBM text (C2: four vs five clocks); XTCE | states, modes; the refresh cost through XTCE | | | 8255A | 2 | Intel 8255A sheet; IBM port tables | complete for mode 0 | | | Keyboard | 2 | IBM interface description; the XT keyboard's dumped 8048 ROM (run on mcs48-python: a program, not a measurement) | the protocol | typematic timing (U5); the 5150 keyboard's own ROM is undumped | | MC6845 | 2 | Motorola sheet | registers, counters as documented | mid-frame register changes per maker (the CPC Phase 0's SHAKER photos are tier 1 for CPC parts only) | | MDA, CGA logic | 2 (schematics) | IBM logic diagrams, transcribed as netlists by reenigne (`8088/cga/circuit*.txt`) | wait-state and snow mechanism, composite generator | the picture: no captures in hand (U12) | | CGA composite colour | 2 + 3 | the generator's logic; reenigne's composite colour algorithm (public domain) | the signal; a decode | a monitor's own decode (host concern) | | uPD765 | 2 | NEC sheet and application note | commands, phases, overrun | the IBM adapter's clock (U15) | | Whole machine | 3 | **test programs that run on real PCs and whose real-hardware output is published**: 8088 MPH and Area 5150 (demos made for and shown on real 5150/5160-class machines with CGA: common knowledge, not verified in this Phase 0, U4), CGA Compatibility Tester (MobyGamer; no licence stated: run only), Landmark/Supersoft diagnostics ROM (MAME set present) | a picture-and-sound comparison against the published real-hardware captures (the "would a real PC show this" test) | numbers: demos are pass/fail on sight | | DMA and bus timing write-ups | 3 | MartyPC's blog (martypc.blogspot.com; robots.txt allows; not fetched in Phase 0): "DMA timings with an oscilloscope" (2023-05) and "bus sniffing IBM 5150" (2023-10), linked from its README | measured 5150 DMA/refresh timing, as prose and captures | read before the bus-timing rung; record each fact's chain | | Whole machine | 5 | MAME 0.285 (closed box, mame-oracle.md); MartyPC (MIT, readable, pin `05c0d088`; README: "passes the 8088 V2 Test Suite with 99.9997% cycle-accuracy", runs every effect of Area 5150, models the 5150, 5160, PCjr and Tandy 1000; its author built the SST corpus); 86Box, PCem (GPL-2.0: closed boxes, built only in emu-tools-gpl2 if ever needed) | divergence detection over long runs | nothing on its own | **Plainly:** there is a tier-1 oracle for the 8088's per-clock bus behaviour without wait states (SST), and a tier-1 *method* with a public-domain reference implementation for the 8088 on a real XT bus with refresh (XTCE). There is no tier-1 capture in hand for the PIT's edge cases, CGA snow or composite output; the demos' published real-hardware videos are the nearest whole-machine judges. ## Rungs for the board (exit tests in handoff-brief.md) 1. Unit tests per chip from the data sheets (tier 2), each naming its page. 2. BIOS POST to ROM BASIC on rev 1 and rev 3 BIOSes and the 5160 rev 1: the port-access sequence equals MAME's (tier 5 detector) or each difference is explained from tier 2. 3. Bus timing: the core's 8088 bus-cycle rung against SST cycles (tier 1); then XTCE's tests with refresh against XTCE (tier 3 detector, tier 1 method) until hardware results exist. 4. Video: CGA modes from the BIOS; snow and composite against the logic (tier 2) and the demos' captures (tier 3). 5. DOS boot from a sector image; a game smoke list from the census (decision 10). 6. Seeded faults: a refresh period off by one, a PIT mode 3 odd-count error, the CGA status bit 3 meaning, an 8259 edge/level swap: each must be caught by some rung.