# The console probe pack Aubrey's Super Famicom and Super EverDrive X5 are this board's tier-1 oracle (handoff-brief.md, "Decided by the user" 6). The probe pack is what goes on the X5's SD card for a session. python scripts/fetch_references.py # the test ROMs, once python -I scripts/build_probe_pack.py # -> probe-pack/ (gitignored) The pack has 120 ROMs in six numbered folders (built 2026-11-24, with `00-OURS/port-race.sfc`), run in order: | Folder | ROMs | What it settles | | --- | ---: | --- | | `00-OURS` | 5 | Our probes (`probes/`, below): the probe suite (the console's revision and the X5's saves, PPU open bus and mid-frame CGRAM/OAM writes (U2), the H/V latch (U5), the S-SMP clock ratio (U8), ...), the two photo probes (U9, U10), power-on memory, the S-CPU/S-SMP port race | | `01-CPU-GILYON` | 3 | 65816 and SPC700 self-checks, on screen as Success or the failing test | | `02-CPU-KROM` | 30 | krom's CPU and SPC700 opcode tests, PASS/FAIL per row | | `03-GLITCH-UNDISBELIEVER` | 30 | undisbeliever's 29 probes + gradient-test. 19 of them are **MOST WANTED**: MAME 0.285 and Mesen2 disagree on them (validation.md), so only a console can decide (U1) | | `04-SMP-BLARGG` | 15 | blargg's S-SMP timer, IPL-disable, execute-from-I/O and controller probes (Q1, Q20) | | `05-NEW-UNDISBELIEVER` | 37 | undisbeliever's tests newer than the 2021 binaries, built from source (below): auto-joypad timing, the quick model-1 DMA crash, DMA ending at HDMA start, SETINI early read, `wrmpyb-in-flight` (U4), mid-scanline VRAM, object dropout. **29 are MOST WANTED** | `CHECKLIST.md` and `results.csv` in the pack give each ROM what to look for (undisbeliever's own source comments for the glitch probes) and what the detectors showed. Results come back as photos plus the X5's `.srm` files; `python -I scripts/probe_results.py *.srm` decodes every save of ours. ## Our probes Each is a 32 KiB LoROM with 2 KiB battery RAM, assembled by ca65 (cc65 2.19) from `probes//.s` and the shared `probes/common/` (start-up, text screen, a generated font, saving). Each save starts with `SNESPRB` and the probe's number. Detector results, run 2026-10-22 as closed boxes (OBSERVED; MAME 0.285, Mesen2 from famicom-python's build): | ROM | Question | MAME 0.285 | Mesen2 | | --- | --- | --- | --- | | `00-revision` | 5A22/PPU1/PPU2 versions from `$4210`/`$213E`/`$213F` at reset; does the X5 keep saves (boot counter) | CPU 2, PPU1 1, PPU2 3, NTSC; count 1, 2, 3 over three runs sharing one NVRAM directory | same versions | | `01-open-bus` | U2/Q2: two PPU open-bus latches, and MDR for write-only reads, 11 cases against fullsnes | all 11 OK | all 11 OK | | `02-hv-latch` | U5: H latched by a `$2137` read against a WRIO bit 7 fall, same master clock (WAI on H-IRQ, 16 samples each) | `$02F` vs `$028`: WRIO 7 dots *earlier* | `$036` vs `$037`: WRIO 1 dot *later* | | `03-clock-ratio` | U8: S-SMP timer-2 ticks over 600 frames; nominal 638,948 (`$09BFE4`) | 638,951 (+5 ppm) | 638,948 (nominal) | | `04-midframe` | U2/Q15/Q16: where a tagged CGRAM write (colour `$080`) and OAM write (byte `$080`) land when made at line 100 dot 100 (active), dot 280 (H-Blank), and line 230 (V-Blank, the control) | CGRAM `$080` in all three; OAM active and H-Blank change one byte, tag not found; V-Blank `$080` | CGRAM active lands at colour `$000`, H-Blank and V-Blank at `$080`; OAM active lands at byte `$214`, H-Blank changes one byte, V-Blank `$080` | | `05-poweron` (2026-11-23) | Memory as a program finds it at start (WRAM $7E:0000-$3FFF and $7F:F000-$FFFF, VRAM words 0-$3FF, OAM, CGRAM, the $2134-$2136/$213E/$213F/$4210-$4212 latches), copied to 32 KiB battery RAM before anything writes WRAM; and WAI with /IRQ held and P.I set (row A) against /IRQ released (row B) | WRAM all `$55`, VRAM/OAM/CGRAM zero, fresh SRAM `$FF`; **row A 225, 10, 225, 225, ...** (WAI waits for a new event) | everything random (WRAM, VRAM, OAM, CGRAM and fresh SRAM); row A 225, 10, 10, 10, 11, 11, 11, 12 (WAI resumes at once) | | `port-race` (2026-11-24) | The S-CPU/S-SMP port race (Zenki, Kawasaki): an S-SMP that clears its input ports and reads `$F5` D = 3..12 cycles later, against 26 S-CPU loops rewriting `$2141` every M = 78..338 master clocks; 286 cells of reads-of-zero counts, 8 KiB battery RAM; [port-race.md](port-race.md) | not run | window D cycles - 10.5 clocks; Zenki's loop sees the zero 26 times in 4096 (the board: D cycles + 21 clocks, 0 in 4096) | `05-poweron` caveat: the X5's menu runs on the console before the probe, so memory its menu used shows the menu's leftovers; what it leaves alone shows the console's own state. Row A settles the DKC lockstep difference (mame-oracle.md); the board reads row A as Mesen2 does and every memory region as zeros (HYPOTHESIS until this save comes back). How to run it is in the pack's CHECKLIST.md (power off 10 s, on, run, photograph, repeat; send `SAVE/05-poweron.srm`); `scripts/probe_results.py` decodes it. `04-midframe` disagrees on the active-display CGRAM row and the active OAM row; both pass the V-Blank control, and all three runs agree within each emulator. MAME also reads every OAM Y byte back one higher than written (mame-oracle.md), so the probe compares OAM with a read-back taken right after the fill, not with the value written. `02-hv-latch` is a detector disagreement of the U1 kind: one of the two is wrong, and the console says which. The open-bus probe is a check on fullsnes for PPU reads; `04-midframe` covers the writes. `03-clock-ratio` matters for this console only: resonators differ unit to unit, so the measured ratio becomes the board's default field for Aubrey's machine, not a constant. `scripts/mame_trace.py` deletes its output directory each run, so testing save persistence needs a direct `mame` call with a fixed `-nvram_directory`. ## Building undisbeliever's newer tests His v20210217 binaries cover 29 tests; the sources (`ac6ef800`) hold 68 hardware tests. They need his `bass-untech` assembler at the commit his repo pins as a submodule (`9db6088`, in `pinned_repos.json`): python scripts/fetch_references.py make -C reference/src/bass-untech/bass # no -j: its copy rule races cd tests/test_roms/undisbeliever-src make bass=$PWD/../../../reference/src/bass-untech/bass/out/bass-untech directories make bass=$PWD/../../../reference/src/bass-untech/bass/out/bass-untech bin/hardware-tests/... bin/hardware-glitch-tests/... (the last line lists every `src/hardware-*tests/**/*.asm` as `bin/.../*.sfc`). All 68 built on 2026-10-22 with g++ 15.2. The rebuilds of the 29 released tests are not byte-identical to the 2021 binaries (the sources have moved on), but all 29 draw the same screen on Mesen2 after 300 frames. `scripts/detectors_compare.py` runs ROMs on both detectors and counts differing pixels. On the 30 released ROMs it reproduces validation.md's split (11 agree, 19 differ). On the 39 newer ones, 10 agree and 29 differ; the counts are in `tests/detectors/undisbeliever-new.tsv`. The mouse and rumble-controller tests are left out of the pack: they need peripherals. ## Not in the pack yet - The mouse and rumble-controller tests, if Aubrey has those peripherals. - krom's PPU demos and GSU tests: the GSU needs a Super FX cartridge, which the X5 cannot provide.