# Validation: the oracle ladder Tiers: 1 hardware-captured > 2 manufacturer documents > 3 hardware-corrected community documents and tests verified on real units > 4 HDL reimplementations > 5 emulators. A low tier is a **detector**, never a **judge**. "Matches MAME", "matches Snow" or "matches Clock Signal" is never a hardware claim. ## Per subsystem: the best judge available | Subsystem | Best judge (tier) | What it decides | Detectors (tier 5) | What nothing in hand decides | | --- | --- | --- | --- | --- | | 68000 | m68000-python's own ladder (SingleStepTests, Motorola's manual, WinUAE/Musashi referees, MAME lockstep) | the CPU | | | | Map, overlay, byte lanes, DTACK/VPA | IM3, IM4, GMFH (2) | decode, mirrors, overlay, acknowledge | MAME, Snow, CLK | open-bus value (U1), phase behaviour (U2), the $F80000 probe (U7) | | **RAM interleave** | IM3 III-18, GMFH ch. 5 (2): "one out of every two RAM access cycles" in words, not clocks | that the CPU loses half the slots while video is shown, and that the SE loses fewer | **disagree**: MAME none, CLK every other 8-half-cycle slot, Snow `cycles % 8 >= 4` (C1) | the slot phase, the sound slot's place, refresh (U3, U4): only the PAL logic (open decision 6) or a probe on a real Plus (open decision 8) | | Video timing, buffers | IM3, GMFH (2) | 704 x 370, 60.15 Hz, buffer addresses, bit order | MAME pictures | VBL and H4 edge positions in clocks (U4) | | Sound / PWM | IM3 (2), DRV400 (2) for the PWM | 370 samples a frame, high byte, volume, timer-1 gating | MAME, Snow, CLK audio | pulse shape and filter (U8: "good enough" rule) | | VIA | 6522 data sheets (2); IM3, GMFH wiring (2) | registers, wiring | MAME (E-clock wait OBSERVED) | the core's own corners belong to `mos6522-python` | | IWM | IWMSPEC, IWMUNDOC (2) | registers, modes, windows, timer | MAME, Snow, CLK | behaviour outside the window table (U12) | | Drives | DRV400, DRV800, IM3 register table (2) | registers, zones, PWM range, TACH | MAME, Snow, CLK | the 400K drive's speed response to the PWM (U9) | | GCR format, images | DRV400 (2); MOOF, CiderPress II notes (3) | the encoding, the formats | | | | SCC | SCCTM (2) | registers, DCD interrupts | MAME, Snow | Mac-specific wiring quirks beyond IM3 | | RTC | IM3 III-36..38 (2) | protocol, commands | MAME, Snow | the Plus's extended PRAM commands (U13) | | Keyboard | IM3, IM4 (2) | protocol, timing, codes | MAME's 8021/8048 LLE | | | SCSI | IM4 (2), NCR5380 (2) | map, registers, pseudo-DMA | MAME, Snow | blind-transfer overrun (U14) | | Whole machine | **Apple's ROM itself**: its power-on tests (RAM, VIA, SCC, IWM checks; the "sad Mac" codes) run from the player's ROM (2: the maker's own test code) | that the board passes the ROM's self-tests and reaches the "?" disk | MAME's boot (same screens, OBSERVED) | | **Plainly: no tier-1 (hardware-captured) oracle exists for any compact-Mac subsystem in hand.** No die-level model of the glue, the IWM or the ASG was found; the PAL dumps on bitsavers are the nearest (open decision 6). Hardware truth comes from Apple's documents and Apple's own ROM; MAME, Snow and Clock Signal find differences and decide nothing, and on the interleave they contradict each other. ## Test programs - **The ROM's power-on test** (every row): passes or shows a sad-Mac code; the boot is a long, deterministic instruction stream for lockstep against MAME until the first interleave-dependent instruction. - **Snow's `mac-tests`** guest testers (MIT; SCSI and AppleTalk exercisers built with Retro68): a method to copy for our own probe programs; they test Snow, not hardware. - **Apple diagnostics** (MacTest, the Apple service diagnostics disks): commercial software, not in the census. - **Our own probe programs** (open decision 8): a small cycle-counting program on a real Plus would decide U3/U4; Aubrey has no Mac on hand (his hardware list), so this is a probe batch to ask someone for, or nothing. ## What ran in this phase | Run | Result | | --- | --- | | `scripts/fetch_references.py --record`, then `--verify` | 19 of 19 pinned files and 4 of 4 repositories present and matching | | `scripts/census.py firmware` (with the MiSTer zip) | every compact-Mac and keyboard set present (40 files in 18 MAME sets); the MiSTer `boot.rom` equals the interleaved Plus v3 ROM | | `scripts/census.py disks` | 56 members, 0 errors; 45 floppy images (36 raw 800K, 9 raw 400K), 1 Disk Copy 4.2, 7 hard-disk images; no MOOF | | `scripts/census.py softlists` | 456 entries in six lists; 354 MOOF images named in `mac_flop_orig` | | MAME 0.285: 3 snapshot runs, 1 trace (120 frames), 2 watchpoint runs | see [mame-oracle.md](mame-oracle.md): 130,240 clocks a frame; no RAM contention in MAME; E-clock-aligned VIA reads; IWM mode $1F | ## Seeded faults (for the board's gate later) Every family gate proves it can fail. Candidates particular to this board: the CPU slot at the wrong phase; contention applied to ROM; contention applied in blanking; the sound fetch skipped on the 28 blank lines; the overlay cleared by reset; the VIA access not aligned to E; /IPL0 not dropped while the SCC interrupts; the IWM register chosen by the old state instead of the new; the one-second timer counting with latch mode set as if guaranteed; the 800K drive following the PWM; the RTC accepting writes with write-protect set; SCSI DACK decoded from the wrong address bit.