# Validation: the oracles found, ranked, and pinned Scrubbed 2026-11-19: PicoDrive, jgenesis, BlastEm, the MiSTer core, Gens and Nuked-MD are closed boxes (the family's `sources.md`). Results of running them stay, marked as closed-box (OBSERVED) results; statements that came from reading their source were struck. ares (ISC) and MAME's `mega32x.cpp` (BSD-3) may be read. ## The tier rule The family's rule, as megadrive-python states it: **hardware-captured > die-derived > specification/manual > research > emulator-derived**, with hardware-corrected test programs (a program whose expected values its author established on hardware) ranking just under hardware captures. A lower-tier oracle is a **detector**: it finds where to look. A **judge** decides. When a detector and a judge disagree, the judge wins and the disagreement goes in [undocumented-behavior.md](undocumented-behavior.md). For a board, "hardware-captured" means output recorded from a real 32X: logic-analyser samples, a video or audio capture, a photograph of a test screen. **For the 32X, no hardware-captured oracle exists that this survey could find**, and no die-derived one either: - no logic-analyser, oscilloscope, video-capture or audio recording of a 32X was found (searches 2026-10-21: SpritesMind, the MiSTer forum, GitHub, archive.org; "32X logic analyzer", "MDFourier 32X", "32X capture"). MDFourier's pinned recordings (in megadrive-python) cover Mega Drive and Sega CD boards, not the 32X; - the 32X's gate arrays (315-5818, 315-5781) have not been decapped or traced in public (a "32X decap 315-5818" search finds only the teardown chip list, pinned); srg320's MiSTer core is an HDL re-implementation, not a die transcription. The strongest judges are therefore **hardware-corrected test programs**: notaz's testpico and, by decision, Sega's own Mars Check Program. Where neither covers a question (the composite, H32, PWM level, fine timing), the claim rests on the specification and on agreeing detectors, **and says so**. Everything below was downloaded and hashed on 2026-10-21 (`scripts/pinned_files.json`, `scripts/pinned_repos.json`); `scripts/fetch_references.py` rebuilds `reference/`. ### Three records, kept apart (Aubrey, 2026-10-24) Every behaviour is recorded as three separate things: **what the documents say** (specifications and research), **what hardware testing shows** (hardware-corrected programs; hardware captures if any ever exist), and **what the board implements**. When they disagree, the disagreement stays visible -- in the quirk's record and in [undocumented-behavior.md](undocumented-behavior.md) -- rather than being resolved toward the easiest implementation. In the code each `sega32x_python.machine.Quirk` carries the three as `documents`, `hardware` and `value`/`source`, and `unresolved` for what is open. Quirks recorded before the rule keep all three in `source` until they are next touched. ## The oracles ### Hardware-captured | Oracle | Status | | --- | --- | | (none) | none found; see above. The first one worth making is a capture of the composite (open decision 6 in [handoff-brief.md](handoff-brief.md)) | ### Hardware-corrected test programs (judges) | Oracle | What it covers | Why it is hardware | Pinned as | | --- | --- | --- | --- | | **notaz, testpico** (2017-2025) | 14 32X tests: `32x resetbtn`, `init`, `echo`, `sh def` (SH-2-side defaults), `md bios`, `md rom`, `md fb`, `sh fb`, `irq cmd`, `irq vint` (2025), `reg w` (writable bits), `rstprep`; plus ~45 Mega Drive tests (DMA, VDP, Z80, timing, IRQ) | self-checking (`expect` macros); notaz writes it against his own hardware and builds a separate `PICO=1` variant where PicoDrive differs; Unlicense | `reference/src/megadrive-notaz/testpico` (30a5783), built by `scripts/build_referees.py` | | **Sega, Mars Check Program** (1994) | 161 tests: MD and SH-2 system register R/W, DREQ, frame buffers and overwrite, SDRAM, palette, the three VDP modes, PWM per channel and CPU, CMD/H/V interrupts | Sega's own hardware diagnostic for the 32X ("32x diagnostics program", `32X/DIAGNSTC` in the SDK, with source); self-counting ("ERROR COUNT"), ends "すべて正常に終了しました" (all finished normally); Near used it ("Mars Test", 161 tests, t=3218). Written for 1994 development targets: **tier is open decision 5** | `reference/test-roms/sega/Mars Check Program (USA) (Program).zip` (No-Intro, 4 MB, SHA-1 `7654c6d3...`); source in `reference/sdk/32xSDK.zip` | | Dasutin, 240p Test Suite for 32X v1.0 (2022) | calibration patterns drawn by the 32X VDP | a port of Artemio Urbina's suite (written on and for hardware); visual, not a timing judge | `reference/test-roms/240pSuite_32X_1.0.32x`; source `reference/src/32X240pTestSuite` | ### Die-derived | Oracle | Status | | --- | --- | | (none) | no 32X die work found. The SH-2's die is sh2-python's question | | (struck 2026-11-19) Nuked-MD, the Mega Drive side of the slot | Session 9's EDCLK figures were taken with a probe written against Nuked-MD's source, so they are not evidence under the 2026-11-19 rules; `composite_alignment` (H32) and `edclk_h32` are provisional ([undocumented-behavior.md](undocumented-behavior.md), open item 4) | ### Specification (manuals, bulletins, schematics) | Oracle | What it covers | Pinned as | | --- | --- | --- | | Sega, *32X Hardware Manual* MAR-32-R4-072294 (1994, provisional v3, 84 pp.) | everything: maps, registers, VDP, PWM, boot ROMs, security, restrictions, waits | `reference/manuals/32X_Hardware_Manual_1994_Sega.pdf` (archive.org SHA-1 `6c56828e...` matched); transcription `reference/src/32XDK/docs/32x-hardware-manual.md` (garbles some tables) | | Sega, *Supplements 1 and 2* (1994) | corrections; the interrupt handler workaround | `reference/manuals/32X_Hardware_Manual_Supplement_{1,2}_1994_Sega.pdf` | | Sega, *Technical Bulletins* #9, #10, #14, #27 | RV and 68000 interrupts; FRT initialisation; the `$FF` shift exception; SH-2 interrupt double-take | `reference/src/32XDK/bulletins/` | | Sega, *Genesis Super 32X System Overview and Hardware Reference* (1994) | the US overview | `reference/manuals/Genesis_Super_32X_System_Overview_...pdf` | | Sega, *32X H/W Information* MAR-25-R5/R6-060694 (1994) | notes on the development target boards (pre-production); "32X I/F Implementation Time": SH-2 cycle lengths per destination, frame-buffer writes 3, 3, 3, 3, then 5 (Target Ver. 2.0) | the 32XDK transcription `reference/src/32XDK/docs/32x-hardware-information.md`; whether the `32X_Technical_Information*.cbr` scans hold it: not checked | | Sega, *32X Technical Information* + Attachment 1 (1994) | technical notes (the Z80 notes 15 and 22 the wiki quotes are believed to come from here; to confirm) | `reference/manuals/32X_Technical_Information*.cbr` | | Sega, *Service Manual Genesis 32X / Mega Drive 32X* No. 012 (1995) | block diagram, schematics, parts: **the signals that cross the slot** (YS, HSYNC, VSYNC, EDCLK, NTSC/PAL, MRES, MCART, VCLK, DTACK, SL1/SR1) and the analog video switch | `reference/manuals/Sega_Service_Manual_...cbr` (scans `A406a`, `A408a`) | | Sega DTS, 32X SDK | the diagnostic's source (2500AD assembler, Hitachi C), samples, CARTDEV | `reference/sdk/32xSDK.zip` (no boot ROM inside: checked) | | Sega SDK sample programs (run length, texture, PWM) | known-good programs exercising one feature each | `reference/test-roms/sega/` (No-Intro); detectors, since nothing states their expected output beyond "it works" | ### Research | Oracle | What it covers | Pinned as | | --- | --- | --- | | SpritesMind t=3218, "Questions on emulating the 32X" (2021) | Near, TascoDLX, srg320, TmEE: HCOUNT, FEN, DREQ, YS/HSYNC/VSYNC on the slot, colour 0, the unresolved priority rule | `reference/forum/spritesmind-t3218.html` (+ `.txt`) | | SpritesMind t=1160, t=1317, t=95 p.12, t=2732 | emulator colours; a CD32X test app; the MD-to-32X FIFO; hardware vs emulator failures | `reference/forum/` | | 32XDK wiki | quirks from developers' hardware use (FRT bump, RV procedure, zero writes, mirrors, Technical Notes 15 and 22) | `reference/src/32XDK.wiki` (ad61121) | | nepereny 32X teardown (mirror) | chip list | `reference/web/nepereny-32x-teardown.html` | | bakemono's 32xspd benchmark (sega-16 forum, "busting 32x performance myths", 2015; ROM and photograph posted to jgenesis issue 493) | the only published measurement of the 32X's bus: eleven loops' KB/s on one NTSC console, photographed | ROM `reference/32xspd/32xspd.zip` (`32xspd.32x` SHA-1 `fc456e2f...`, git-ignored); photograph sh2-python `reference/docs/32xspd-hardware.jpg`; `scripts/run_32xspd.py` | ### Emulator-derived (detectors) | Emulator | Notes | Pinned as | | --- | --- | --- | | **PicoDrive** (irixxxx; non-commercial: closed box) | runs with no boot ROMs (OBSERVED) | run as a shipped libretro core, `reference/build/picodrive/picodrive_libretro.so` (sha1 e12b3942; built here from the pinned revision before 2026-11-24, its source tree since moved out unopened) | | **ares** (ISC) | Near's 32X (2021-); passes the Mars Check Program per Near | `reference/src/ares` (read as source, notice kept) | | **jgenesis** (GPL-3.0: closed box) | embeds Sega's boot ROMs (left out of the pin, so not built) | not used; its pin removed 2026-11-24 | | **BlastEm** 1.0.1-pre (GPL-3.0: closed box) | passes Mars Check 161/161, hangs in testpico `32x init` (below; OBSERVED) | run as a libretro core from `megadrive-python/reference/build-blastem-libretro` (542164d); source pin removed 2026-11-24 | | S32X_MiSTer (GPL: closed box) | FPGA HDL; not built here | not used; its pin removed 2026-11-24 | | MAME 0.285 (`mega32x.cpp` BSD-3; the rest GPL) | sparse; fails both judges ([mame-oracle.md](mame-oracle.md)) | `reference/src/mame`, `/usr/games/mame` | | Gens-rr (closed box) | the historic reference; known to pass code hardware rejects (t=2732); not built here | not used; its pin removed 2026-11-24 | No closed-box emulator's source is fetched (Aubrey, 2026-11-24; [provenance.md](provenance.md), "Emulator sources removed"). Found but not pinned: fedex81's helios32x (Java, 2023; a detector if a third opinion is needed), Kega Fusion (closed source; only forum reports of its behaviour). ### Boot ROMs Sega's three, bring-your-own, SHA-1s in [start-here.md](start-here.md). Present locally in the user's No-Intro sets, the MAME romset and a local BIOS folder; never copied here. Free replacements: [start-here.md](start-here.md), "Boot ROMs". ## What ran here (2026-10-21) | Program | Referee | Result | | --- | --- | --- | | testpico hardware build (30a5783) | PicoDrive 1008a98, no boot ROMs | **54/57 passed, 1 skipped**; failed `irq ack h-v` (#42) and `32x irq vint` (#54) | | testpico `PICO=1` build | PicoDrive | 55/57, 1 skipped; failed `32x irq vint` (#54): notaz's 2025 vint tests are newer than PicoDrive's model | | testpico hardware build | MAME 0.285 (user's boot ROMs) | Mega Drive timing failures, then illegal-instruction exception; no 32X test reached | | Mars Check Program (Program) | PicoDrive, no boot ROMs | 161/161, ERROR COUNT 0, "all finished normally" before frame 8,000 | | Mars Check Program (Program) | MAME 0.285 | stopped at 39/161, ERROR COUNT 2, after 420 s | | testpico hardware build | BlastEm 1.0.1-pre libretro 542164d (user's boot ROMs, 2026-10-23) | failed `time z80 vdp` (#26), `time z80 bank rom` (#27), `time hblank h32` (#31), `irq ack v-h 2` (#41); then **hung in `32x init` (#46)**: the counter stays at 46/57 from frame 600 to 3,600, so no 32X test after `32x resetbtn` (#0) reports | | Mars Check Program (Program) | BlastEm 1.0.1-pre (user's boot ROMs) | 161/161, ERROR COUNT 0 at 83/161, "all finished normally" by frame 8,000 | Readings: PicoDrive passes Sega's diagnostic completely yet fails one of testpico's 32X tests, so **the diagnostic is coarse** (register R/W and function) and testpico is the sharper judge for interrupts and defaults. The skipped test is test 0, `32x resetbtn`, which skips itself on a cold boot (milestone 0, below). BlastEm shows the same thing more sharply: it passes Sega's diagnostic completely, yet testpico's first real 32X test never returns. Which access in `t_32x_init` it waits on is not yet found; that is a detector question for milestone 0, not a ruling. Note that testpico's top-left `NN/57` is its progress counter, not a score: a run that finishes prints `N/57 passed, M skipped.` ## Milestone 0: the referee tables (2026-10-23) Rerun here on 2026-10-23 for these tables: PicoDrive (irixxxx 1008a98, `scripts/libretro_frames.py`; its libretro core looks up only Sega CD boot ROMs, so it always runs its own 32X start), MAME 0.285 (`docs/mame-oracle.md`, with an autoboot Lua script snapshotting every frame for testpico, every 600 for the Mars Check Program; the user's boot ROMs from MAME's `32x.zip`). BlastEm's column is the 2026-10-23 run in 36bb09a. **jgenesis and ares are not built** here (ares is read as source; jgenesis's pin leaves out its embedded Sega boot ROMs, and its source is not opened), so they have no column. ### Boot ROMs verified The user's three, in a local BIOS folder, hashed 2026-10-23; all match [start-here.md](start-here.md), "Boot ROMs". Never copied into this repository or `reference/`. | File | Size | SHA-1 | Matches | | --- | --- | --- | --- | | `32X_G_BIOS.BIN` (68000) | 256 | `dbebd76a448447cb6e524ac3cb0fd19fc065d944` | yes | | `32X_M_BIOS.BIN` (master SH-2) | 2,048 | `1e5b0b2441a4979b6966d942b20cc76c413b8c5e` | yes | | `32X_S_BIOS.BIN` (slave SH-2) | 1,024 | `4103668c1bbd66c5e24558e73d4f3f92061a109a` | yes | The free boot ROM: by decision 3 the user's ROMs are required; (b) stays possible later. ### testpico 30a5783, per test testpico prints only failures (`failed N: name`) and a final `P/57 passed, S skipped.`, so a test is `pass` when it ran and printed nothing. `skip`: test 0 returns `R_SKIP` on a cold boot, by its source (`t_32x_reset_btn`: "if (!(read16(r16) & 1)) return R_SKIP"), which is the one skip every referee reports. `-`: never reached. hw = the hardware build, pd = the `PICO=1` build. | # | Test | PicoDrive hw | PicoDrive pd | MAME 0.285 hw | BlastEm hw | board, cold / warm (2026-10-25) | | --- | --- | --- | --- | --- | --- | --- | | 0 | 32x resetbtn | skip | skip | skip | skip | skip / pass | | 1 | dma zero len + wrap | pass | pass | **fail** | pass | pass / pass | | 2 | dma zero len + fill | pass | pass | **fail** | pass | pass / pass | | 3 | dma ram wrap | pass | pass | pass | pass | pass / pass | | 4 | dma multi | pass | pass | pass | pass | pass / pass | | 5 | dma cram wrap | pass | pass | pass | pass | pass / pass | | 6 | dma vsram wrap | pass | pass | **fail** | pass | pass / pass | | 7 | dma and data | pass | pass | pass | pass | pass / pass | | 8 | dma short cmd | pass | pass | pass | pass | pass / pass | | 9 | dma fill3 odd | pass | pass | **fail** | pass | pass / pass | | 10 | dma fill3 even | pass | pass | **fail** | pass | pass / pass | | 11 | dma fill3 vsram | pass | pass | **fail** | pass | pass / pass | | 12 | dma fill disabled | pass | pass | pass | pass | pass / pass | | 13 | dma fill src incr | pass | pass | **fail** | pass | pass / pass | | 14 | dma no busy | pass | pass | pass | pass | pass / pass | | 15 | dma 128k mode | pass | pass | **fail** | pass | pass / pass | | 16 | vdp 128k addr bit16 | pass | pass | **fail** | pass | pass / pass | | 17 | vdp reg w cmd reset | pass | pass | pass | pass | pass / pass | | 18 | vdp status reg vb | pass | pass | pass | pass | pass / pass | | 19 | z80 ram long mirror | pass | pass | pass | pass | pass / pass | | 20 | z80 ram noreq write | pass | pass | pass | pass | pass / pass | | 21 | z80 vdp read | pass | pass | **fail** | pass | pass / pass | | 22 | time loop | pass | pass | **fail** | pass | pass / pass | | 23 | time z80 loop | pass | pass | pass | pass | pass / pass | | 24 | time z80 ram | pass | pass | pass | pass | pass / pass | | 25 | time z80 ym2612 | pass | pass | pass | pass | pass / pass | | 26 | time z80 vdp | pass | pass | **fail** | **fail** | **fail** / **fail** | | 27 | time z80 bank rom | pass | pass | **fail** | **fail** | **fail** / **fail** | | 28 | time V counter | pass | pass | **fail** | pass | pass / pass | | 29 | time vcnt loops | pass | pass | **fail** | pass | pass / pass | | 30 | time hblank h40 | pass | pass | **fail** | pass | pass / pass | | 31 | time hblank h32 | pass | pass | **fail** | **fail** | pass / pass | | 32 | time vdp vram w | pass | pass | **fail** | pass | pass / pass | | 33 | time vdp cram w | pass | pass | **fail** | pass | pass / pass | | 34 | time timer a z80 | pass | pass | pass | pass | pass / pass | | 35 | time timer b z80 | pass | pass | pass | pass | pass / pass | | 36 | timer b stop | pass | pass | pass | pass | pass / pass | | 37 | timer ab sync | pass | pass | **fail** | pass | pass / pass | | 38-40 | irq4 / line; irq both umask; irq ack v-h | pass | pass | - (1) | pass | pass / pass | | 41 | irq ack v-h 2 | pass | pass | - | **fail** | **fail** / **fail** | | 42 | irq ack h-v | **fail** | pass | - | pass | **fail** / **fail** | | 43-45 | irq ack h-v 2; irq f flag h40; irq f flag h32 | pass | pass | - | pass | 43 **fail** / **fail**; 44 pass / pass; 45 **fail** / pass | | 46 | 32x init | pass | pass | - | **hangs** (2) | pass / pass | | 47 | 32x echo | pass | pass | - | - | pass / pass | | 48 | 32x sh def | pass | pass | - | - | pass / pass | | 49 | 32x md bios | pass | pass | - | - | pass / pass | | 50 | 32x md rom | pass | pass | - | - | pass / pass | | 51 | 32x md fb | pass | pass | - | - | pass / pass | | 52 | 32x sh fb | pass | pass | - | - | pass / pass | | 53 | 32x irq cmd | pass | pass | - | - | pass / pass | | 54 | 32x irq vint | **fail** | **fail** | - | - | pass / pass | | 55 | 32x reg w | pass | pass | - | - | pass / pass | | 56 | 32x rstprep | pass | pass | - | - | pass / pass | | | **total** | 54/57, 1 skipped | 55/57, 1 skipped | no total | no total | 50/57, 1 skipped / 52/57, 0 skipped | (1) MAME takes exception 4 (illegal instruction, PC `$000778`, inside the cartridge's Sega initial program block at `$3F0-$7FF`) after printing test 37's failure, within 40 frames, and stops; tests 38-56 never report. (2) BlastEm's counter stays at 46 from frame 600 to 3,600 (36bb09a). The board's column (milestone 2, at f3aab74, the user's boot ROMs; `scripts/run_32x.py`): the cold run to frame 110, then the reset button at frame 115 (socket 9's BUTTON) and the warm run to frame 260, which is when test 0, `32x resetbtn`, runs (testpico skips it on a cold boot). **All twelve 32X tests pass** (testpico has twelve: test 0 and 46-56; the brief's "14" counted wrong). Its Mega Drive rows are megadrive-python's own: run alone at 44ab15d, the cold run fails the same six (26, 27, 41, 42, 43, 45) with the same diagnostic lines; test 45 passes on the warm run. For the referees' warm runs (PicoDrive pressing its reset after testpico ended: 54/57, all 32X tests but 54 pass; BlastEm after its hang in 46: 48/57, failing 0, 46, 48, 50 and 54) see [worklog.md](worklog.md), Session 3. Rerun at milestone 3 (3ad5c20, the 32X VDP built; 2026-10-29): cold 50/57, 1 skipped; warm 51/57, 0 skipped. **All twelve 32X tests still pass**, `32x irq vint` included, now with VINT at the 32X VDP's VBLANK (27 dots after HBLANK) instead of the first border line's start. The Mega Drive tests fail as before (26, 27, 41, 42, 43, 45 cold), except that test 45 (`irq f flag h32`, a Mega Drive H32 timing test) now fails on the warm run too: the reset lands at a different point of the frame (the warm screen's `reset hvc` reads `f90->0167` where milestone 2's read `f90->0186`), because the SH-2s' interrupt timing moved the 68000's handshakes before the press; rerun at milestone 2's 2dcc6ca on the same day it reads `0186` and passes 45. megadrive-python alone fails 45 on a cold start; its outcome follows where the reset lands, not the 32X. Readings: on the 32X tests the only referee that reaches them, PicoDrive, fails one (`32x irq vint`, notaz's 2025 test, newer than PicoDrive's model); PicoDrive's hardware build also fails one Mega Drive test (`irq ack h-v`) that its `PICO=1` build has special-cased. **No referee passes all 14 32X tests**, so testpico stays a judge with no detector agreeing on every row. MAME's failures are Mega Drive timing and DMA, as megadrive-python already knows MAME's VDP to be (a detector there too). ### Mars Check Program (USA) (Program), per group The program shows one test at a time: its message ("... OK", or an error report) under the group title, a running `N/161` and `ERROR COUNT`; it keeps no list. Group titles are its own (`32X/DIAGNSTC/SOURCE/MD/INCLUDE/SYSDATA.ASS` in the SDK); the ranges are exact, from the per-test capture below (rerun 2026-10-24). An error belongs to the test whose counter is showing when `ERROR COUNT` moves. | Tests | Group | PicoDrive | BlastEm | MAME 0.285 | | --- | --- | --- | --- | --- | | 1-15 | MEGA DRIVE SYSTEM REGISTER R/W CHECK | 0 errors | 0 errors | 0 errors | | 16-38 | SH2 SYSTEM REGISTER R/W CHECK | 0 | 0 | **1 error** (test 38) | | 39-58 | MD & SH2 SYSTEM REGISTER R/W CHECK | 0 | 0 | **1 error** (test 39), then stalls in 40 | | 59-66 | MEGA DRIVE VDP REGISTER R/W CHECK | 0 | 0 | - | | 67-82 | SH2 VDP REGISTER R/W CHECK | 0 | 0 | - | | 83-112 | FRAME BUFFER CHECK | 0 | 0 | - | | 113-121 | PALETTE RAM CHECK | 0 | 0 | - | | 122-134 | MD or SH2 DMA TEST | 0 | 0 | - | | 135-156 | SOUND TEST | 0 | 0 | - | | 157-161 | DIRECT COLOR / PACKED PIXEL / RUNLENGTH MODE | 0 | 0 | - | | | **verdict** | ERROR COUNT 0, "すべて正常に終了しました" ("all finished normally") by frame 6,500 | ERROR COUNT 0, "all finished normally" by frame 8,000 | ERROR COUNT 2 at 39/161; nothing moves to frame 2,700 (and to 420 s on 2026-10-21) | The 2026-10-23 version of this table put test 38 in the wrong group (it read MAME as clean "to 37"); the per-test capture places MAME's first error in the SH2 group. ### Mars Check Program, per test Captured 2026-10-24: PicoDrive and BlastEm through `scripts/libretro_frames.py --on-change 42,194,108,212` (a frame is kept whenever the `N/161` counter changes, with the frame before it), MAME through an autoboot Lua script snapshotting every second frame for 45 emulated seconds. The counter is read from each frame by matching its digits; a test's row is the last frame its counter shows (the message there is that test's own), or, where a group change had cleared the message by then, the first. The message text is transcribed from PicoDrive's frames ("COMMUNIACTION" is the program's spelling); BlastEm's and MAME's frames are compared with PicoDrive's after thresholding (their colours differ): same message and same `ERROR COUNT` is `OK`. The sound tests print no verdict, only what is playing: "no error counted". Tests 124 and 125 finished within one frame on both PicoDrive and BlastEm, so their messages were never on screen; the count did not move. The board's column (milestone 2, at f3aab74, the user's boot ROMs, `scripts/run_32x.py --on-change`): its counter and messages read the same way from its own Mega Drive picture (the program draws its text on the Mega Drive VDP). It ran 1,600 frames (about two hours on this machine) and reached test 67; **the system tests, 1-58, all pass**. Test 65, MEGA DRIVE VDP group's PALETTE ENABLE BIT, fails: the 32X VDP is milestone 3 (PEN is the stub's, `vdpregs.py`). The board's column from test 65 on (milestone 3, at 3ad5c20, the user's boot ROMs, `scripts/run_32x.py --on-change`, 9,000 frames): **every test passes**. ERROR COUNT reads 0 on every one of the 328 frames kept that show it (the last at test 156, frame 5,234), every message on screen reads `... OK` (the VDP register, frame buffer, palette and DMA groups were read one by one off the frames), and the program ends "すべて正常に終了しました" ("all finished normally") between frames 6,750 and 7,000 -- PicoDrive by 6,500, BlastEm by 8,000. Test 65, PALETTE ENABLE BIT, which failed at milestone 2, passes. The VDP-mode pictures it shows on the way (tests 157-161) are compared with the detectors in "Milestone 3" below. Frames kept (git-ignored, `reference/m0-frames/`): MAME's two failure reports and its stall, and both referees' frames for tests 5 and 58. (1) The sampled frame had no message (MAME: sampled every second frame; BlastEm: the group change cleared it first); `ERROR COUNT` was unchanged, so `OK`. **Disagreements between referees**: only MAME's. Test 38 ("SH2 SERIAL COMMUNIACTION" on the others): "SH2 MASTER TIMEOUT ERROR", address, write and read data all 0. Test 39 ("MD&SH MASTER COMMUNICATION"): "MD&SH MASTER COMMUNICATION ERROR", address `$A15128`, write data 1, read data 0. Each shows "何かキーを押してください" ("press any key") and continues by itself; after test 39 the counter never moves again. PicoDrive and BlastEm agree on all 161. | # | Test (its own message, PicoDrive) | PicoDrive | BlastEm | MAME 0.285 | board (1-64: 2026-10-25; 65 on: 2026-10-29) | | --- | --- | --- | --- | --- | --- | | | **MEGA DRIVE SYSTEM REGISTER R/W CHECK** | | | | | | 1 | COMMUNICATION R/W CHECK | OK | OK | OK | OK | | 2 | FM BIT R/W | OK | OK | OK | OK | | 3 | INTERRUPT REGISTER R/W | OK | OK | OK | OK | | 4 | BANK CONTROL REGISTER R/W | OK | OK | OK | OK | | 5 | DREQ CONTROL REGISTER R/W | OK | OK | OK (1) | OK | | 6 | DREQ SOURCE ADDRESS REG. R/W | OK | OK | OK | OK | | 7 | DREQ DEST. ADDRESS REG. R/W | OK | OK | OK | OK | | 8 | DREQ LENGTH REGISTER R/W | OK | OK | OK | OK | | 9 | SEGA TV REGISTER R/W | OK | OK | OK | OK | | 10 | H INTERRUPT VECTOR R/W | OK | OK | OK | OK | | 11 | PWM CONTROL REGISTER R/W | OK | OK | OK | OK | | 12 | PWM FREQUENCY REGISTER R/W | OK | OK | OK | OK | | 13 | PWM LCH PULSE WIDTH REGISTER | OK | OK | OK | OK | | 14 | PWM RCH PULSE WIDTH REGISTER | OK | OK | OK | OK | | 15 | PWM MONO PULSE WIDTH REGISTER | OK | OK | OK | OK | | | **SH2 SYSTEM REGISTER R/W CHECK** | | | | | | 16 | SH2 MASTER COMMUNICATION R/W | OK | OK | OK | OK | | 17 | SH2 SLAVE COMMUNICATION R/W | OK | OK | OK | OK | | 18 | SH2 MASTER FMBIT R/W | OK | OK | OK | OK | | 19 | SH2 SLAVE FMBIT R/W | OK | OK | OK | OK | | 20 | SH2 MASTER INT. MASK REG. R/W | OK | OK | OK | OK | | 21 | SH2 SLAVE INT. MASK REG. R/W | OK | OK | OK | OK | | 22 | SH2 MASTER H COUNTER REG. R/W | OK | OK | OK | OK | | 23 | SH2 SLAVE H COUNTER REG. R/W | OK | OK | OK | OK | | 24 | SH2 MASTER PWM TIMER REG. R/W | OK | OK | OK | OK | | 25 | SH2 SLAVE PWM TIMER REG. R/W | OK | OK | OK | OK | | 26 | SH2 MASTER PWM CONT. REG. R/W | OK | OK | OK | OK | | 27 | SH2 SLAVE PWM CONT. REG. R/W | OK | OK | OK | OK | | 28 | SH2 MASTER PWM FREQ. REG. R/W | OK | OK | OK | OK | | 29 | SH2 SLAVE PWM FREQ. REG. R/W | OK | OK | OK | OK | | 30 | SH2 MASTER PWM Lch REG. R/W | OK | OK | OK | OK | | 31 | SH2 SLAVE PWM Lch REG. R/W | OK | OK | OK | OK | | 32 | SH2 MASTER PWM Rch REG. R/W | OK | OK | OK | OK | | 33 | SH2 SLAVE PWM Rch REG. R/W | OK | OK | OK | OK | | 34 | SH2 MASTER PWM MONO REG. R/W | OK | OK | OK | OK | | 35 | SH2 SLAVE PWM MONO REG. R/W | OK | OK | OK | OK | | 36 | SH2 MASTER ROM READ CHECK | OK | OK | OK | OK | | 37 | SH2 SLAVE ROM READ CHECK | OK | OK | OK | OK | | 38 | SH2 SERIAL COMMUNIACTION | OK | OK | **FAIL**: SH2 MASTER TIMEOUT ERROR | OK | | | **MD & SH2 SYSTEM REGISTER R/W CHECK** | | | | | | 39 | MD&SH MASTER COMMUNICATION | OK | OK | **FAIL**: MD&SH MASTER COMMUNICATION ERROR ($A15128: wrote 1, read 0) | OK | | 40 | MD&SH SLAVE COMMUNICATION | OK | OK | **stalls** (counter stays at 39) | OK | | 41 | MD&SH MASTER FM BIT R/W | OK | OK | - | OK | | 42 | MD&SH SLAVE FM BIT R/W | OK | OK | - | OK | | 43 | MD&SH MASTER DREQ CTL R/W | OK | OK | - | OK | | 44 | MD&SH SLAVE DREQ CTL R/W | OK | OK | - | OK | | 45 | MD&SH MASTER DREQ SOURCE REG. | OK | OK | - | OK | | 46 | MD&SH SLAVE DREQ SOURCE REG. | OK | OK | - | OK | | 47 | MD&SH MASTER DREQ DEST. REG. | OK | OK | - | OK | | 48 | MD&SH SLAVE DREQ DEST. REG. | OK | OK | - | OK | | 49 | MD&SH MASTER DREQ LENGTH REG. | OK | OK | - | OK | | 50 | MD&SH SLAVE DREQ LENGTH REG. | OK | OK | - | OK | | 51 | SH2 MASTER V INTERRUPT | OK | OK | - | OK | | 52 | SH2 SLAVE V INTERRUPT | OK | OK | - | OK | | 53 | SH2 MASTER H INTERRUPT (MD 0) | OK | OK | - | OK | | 54 | SH2 SLAVE H INTERRUPT (MD 0) | OK | OK | - | OK | | 55 | SH2 MASTER H INTERRUPT (MD 1) | OK | OK | - | OK | | 56 | SH2 SLAVE H INTERRUPT (MD 1) | OK | OK | - | OK | | 57 | SH2 MASTER H INTERRUPT (MD 2) | OK | OK | - | OK | | 58 | SH2 SLAVE H INTERRUPT (MD 2) | OK | OK (1) | - | OK | | | **MEGA DRIVE VDP REGISTER R/W CHECK** | | | | | | 59 | BITMAP MODE REGISTER R/W | OK | OK | - | OK | | 60 | SHIFT REGISTER R/W | OK | OK | - | OK | | 61 | AUTO FILL LENGTH REGISTER R/W | OK | OK | - | OK | | 62 | AUTO FILL START ADDR. REG. R/W | OK | OK | - | OK | | 63 | V BLANK BIT | OK | OK | - | OK | | 64 | H BLANK BIT | OK | OK | - | OK (1) | | 65 | PALETTE ENABLE BIT | OK | OK | - | OK | | 66 | FRAME SWAP BIT R/W | OK | OK | - | OK | | | **SH2 VDP REGISTER R/W CHECK** | | | | | | 67 | SH2 MASTER BITMAP MD REG. R/W | OK | OK | - | OK | | 68 | SH2 SLAVE BITMAP MD REG. R/W | OK | OK | - | OK | | 69 | SH2 MASTER SHIFT REG. R/W | OK | OK | - | OK | | 70 | SH2 SLAVE SHIFT REG. R/W | OK | OK | - | OK | | 71 | SH2 MASTER FILL LENGTH R/W | OK | OK | - | OK | | 72 | SH2 SLAVE FILL LENGTH R/W | OK | OK | - | OK | | 73 | SH2 MASTER FILL START R/W | OK | OK | - | OK | | 74 | SH2 SLAVE FILL START R/W | OK | OK | - | OK | | 75 | SH2 MASTER V BLANK BIT | OK | OK | - | OK | | 76 | SH2 SLAVE V BLANK BIT | OK | OK | - | OK | | 77 | SH2 MASTER H BLANK BIT | OK | OK | - | OK | | 78 | SH2 SLAVE H BLANK BIT | OK | OK | - | OK | | 79 | SH2 MASTER PALETTE ENABLE BIT | OK | OK | - | OK | | 80 | SH2 SLAVE PALETTE ENABLE BIT | OK | OK | - | OK | | 81 | SH2 MASTER FRAME SWAP BIT | OK | OK | - | OK | | 82 | SH2 SLAVE FRAME SWAP BIT | OK | OK | - | OK (1) | | | **FRAME BUFFER CHECK** | | | | | | 83 | MD FRAME BUFFER 0 R/W | OK | OK | - | OK | | 84 | MD FRAME BUFFER 1 R/W | OK | OK | - | OK | | 85 | SH2 MASTER FRAME BUFFER 0 R/W | OK | OK | - | OK | | 86 | SH2 SLAVE FRAME BUFFER 0 R/W | OK | OK | - | OK | | 87 | SH2 MASTER FRAME BUFFER 1 R/W | OK | OK | - | OK | | 88 | SH2 SLAVE FRAME BUFFER 1 R/W | OK | OK | - | OK | | 89 | MD FRAME BUFFER 0 OVERWRITE | OK | OK | - | OK | | 90 | MD FRAME BUFFER 1 OVERWRITE | OK | OK | - | OK | | 91 | MD FRAME BUFFER 0 BYTE WRITE | OK | OK | - | OK | | 92 | MD FRAME BUFFER 1 BYTE WRITE | OK | OK | - | OK | | 93 | SH2 MASTER FRAME 0 OVERWRITE | OK | OK | - | OK | | 94 | SH2 SLAVE FRAME 0 OVERWRITE | OK | OK | - | OK | | 95 | SH2 MASTER FRAME 1 OVERWRITE | OK | OK | - | OK | | 96 | SH2 SLAVE FRAME 1 OVERWRITE | OK | OK | - | OK | | 97 | SH2 MASTER FRAME 0 BYTE WRITE | OK | OK | - | OK | | 98 | SH2 SLAVE FRAME 0 BYTE WRITE | OK | OK | - | OK | | 99 | SH2 MASTER FRAME 1 BYTE WRITE | OK | OK | - | OK | | 100 | SH2 SLAVE FRAME 1 BYTE WRITE | OK | OK | - | OK | | 101 | MD FRAME BUFFER 0 FILL DATA | OK | OK | - | OK | | 102 | MD FRAME BUFFER 1 FILL DATA | OK | OK | - | OK | | 103 | MD FRAME 0 FILL LENGTH & ADDR. | OK | OK | - | OK | | 104 | MD FRAME 1 FILL LENGTH & ADDR. | OK | OK | - | OK | | 105 | SH2 MASTER FRAME 0 FILL DATA | OK | OK | - | OK | | 106 | SH2 SLAVE FRAME 0 FILL DATA | OK | OK | - | OK | | 107 | SH2 MASTER FRAME 1 FILL DATA | OK | OK | - | OK | | 108 | SH2 SLAVE FRAME 1 FILL DATA | OK | OK | - | OK | | 109 | SH2 MASTER FRAME 0 FILL ADDR | OK | OK | - | OK | | 110 | SH2 SLAVE FRAME 0 FILL ADDR | OK | OK | - | OK | | 111 | SH2 MASTER FRAME 1 FILL ADDR | OK | OK | - | OK | | 112 | SH2 SLAVE FRAME 1 FILL ADDR | OK | OK | - | OK (1) | | | **PALETTE RAM CHECK** | | | | | | 113 | MD PALETTE R/W (BLANK MODE) | OK | OK | - | OK | | 114 | MD PALETTE R/W (DISPLAY MODE) | OK | OK | - | OK | | 115 | MD PALETTE R/W (FILL MODE) | OK | OK | - | OK | | 116 | SH2 MASTER PALETTE R/W (BLANK) | OK | OK | - | OK | | 117 | SH2 SLAVE PALETTE R/W (BLANK) | OK | OK | - | OK | | 118 | SH2 MASTER PALETTE R/W (DISP) | OK | OK | - | OK | | 119 | SH2 SLAVE PALETTE R/W (DISP) | OK | OK | - | OK | | 120 | SH2 MASTER PALETTE R/W (FILL) | OK | OK | - | OK | | 121 | SH2 SLAVE PALETTE R/W (FILL) | OK | OK | - | OK (1) | | | **MD or SH2 DMA TEST** | | | | | | 122 | SH2 MASTER CPU WRITE DMA | OK | OK | - | OK | | 123 | SH2 SLAVE CPU WRITE DMA | OK | OK | - | OK | | 124 | (never on screen: finished within one frame on both) | pass (0 errors) | pass (0 errors) | - | pass (0 errors) | | 125 | (never on screen: finished within one frame on both) | pass (0 errors) | pass (0 errors) | - | pass (0 errors) | | 126 | MD ROM TO VRAM DMA | OK | OK | - | OK | | 127 | SH2 MASTER ROM TO SDRAM | OK | OK | - | OK | | 128 | SH2 SLAVE ROM TO SDRAM | OK | OK | - | OK | | 129 | SH2 MASTER ROM TO FRAME DMA | OK | OK | - | OK | | 130 | SH2 SLAVE ROM TO FRAME DMA | OK | OK | - | OK | | 131 | SH2 MASTER SDRAM TO FRAME DMA | OK | OK | - | OK | | 132 | SH2 SLAVE SDRAM TO FRAME DMA | OK | OK | - | OK | | 133 | SH2 MASTER FRAME TO SDRAM DMA | OK | OK | - | OK | | 134 | SH2 SLAVE FRAME TO SDRAM DMA | OK | OK | - | OK | | | **SOUND TEST** | | | | | | 135 | MD 68000 MONAURAL SOUND | no error counted | no error counted | - | no error counted | | 136 | MD 68000 L CHANNEL SOUND | no error counted | no error counted | - | no error counted | | 137 | MD 68000 R CHANNEL SOUND | no error counted | no error counted | - | no error counted | | 138 | MD 68000 L -> R PAN | no error counted | no error counted | - | no error counted | | 139 | MD 68000 R -> L PAN | no error counted | no error counted | - | no error counted | | 140 | SH2 MASTER MONAURAL SOUND | no error counted | no error counted | - | no error counted | | 141 | SH2 MASTER L CHANNEL SOUND | no error counted | no error counted | - | no error counted | | 142 | SH2 MASTER R CHANNEL SOUND | no error counted | no error counted | - | no error counted | | 143 | SH2 MASTER L -> R PAN | no error counted | no error counted | - | no error counted | | 144 | SH2 MASTER R -> L PAN | no error counted | no error counted | - | no error counted | | 145 | SH2 SLAVE MONAURAL SOUND | no error counted | no error counted | - | no error counted | | 146 | SH2 SLAVE L CHANNEL SOUND | no error counted | no error counted | - | no error counted | | 147 | SH2 SLAVE R CHANNEL SOUND | no error counted | no error counted | - | no error counted | | 148 | SH2 SLAVE L -> R PAN | no error counted | no error counted | - | no error counted | | 149 | SH2 SLAVE R -> L PAN | no error counted | no error counted | - | no error counted | | 150 | SH2 MASTER PWM INTERRUPT | no error counted | no error counted | - | no error counted | | 151 | SH2 SLAVE PWM INTERRUPT | no error counted | no error counted | - | no error counted | | 152 | SH2 MASTER PWM DMA WRITE | no error counted | no error counted | - | no error counted | | 153 | SH2 SLAVE PWM DMA WRITE | no error counted | no error counted | - | no error counted | | 154 | Z80 PWM MONAURAL SOUND | no error counted | no error counted | - | no error counted | | 155 | Z80 PWM L CHANNEL SOUND | no error counted | no error counted | - | no error counted | | 156 | Z80 PWM R CHANNEL SOUND | no error counted | no error counted | - | no error counted | | | **DIRECT COLOR / PACKED PIXEL / RUNLENGTH MODE** | | | | | | 157-161 | the VDP-mode pictures (no counter on screen) | final verdict: all finished normally | final verdict: all finished normally | - | final verdict: all finished normally (by frame 7,000) | Readings: PicoDrive (no boot ROMs) and BlastEm (the user's) both pass Sega's diagnostic whole, and both fail testpico 32X rows or never reach them: the diagnostic is the coarser judge. MAME's two errors fall on the first tests in which one CPU checks what the other did (the SH-2s' serial link; a communication port, `$A15128`, the two sides share), which fits its own source's list of unimplemented 32X corners (`mega32x.cpp`, BSD-3). ## Milestone 3: the 32X VDP's own picture against the detectors (2026-10-29) The board's 32X-only frames (`scripts/run_32x.py`, `fNNNNN-32x.png`, at 3ad5c20, the user's boot ROMs) against PicoDrive 1008a98 (no boot ROMs) and BlastEm 1.0.1-pre (the user's) through `scripts/libretro_frames.py`, compared by `scripts/compare_frames.py`: for each board frame, the detector frame closest to it over the whole run (1,200 frames of each sample; the 240p suite every tenth frame to 600), pixel by pixel over the 320 x 224 picture, a channel differing by more than 12 counting. ares and jgenesis are not built here, so they have no column. The detectors give the composite; on all three programs the Mega Drive layer shows nothing under the 32X's picture (backdrop black, or the 32X drawn with priority), so the composite is the 32X's picture. Frames are kept in `reference/m3/final/` (git-ignored). | Program | Board frames | PicoDrive | BlastEm | | --- | --- | --- | --- | | Mars Sample Program - Runlength Mode Test (Auto Demo) | 12 (every 50th, 50-600) | **0 pixels differ** on all 12 | **0** on all 12 | | Mars Sample Program - Texture Test (Auto Demo) | 12 (every 50th, 50-600) | **0** on all 12 | **0** on all 12 | | 240p Test Suite 1.0 for 32X: main menu (frame 140), Test Patterns menu (300), Color Bars (600), pad presses at 150 (A), 270 (down), 330 (A) | 3 screens | **0** on all 3 | **0** on all 3 | The Mars Check Program's own VDP-mode pictures (tests 157-161; the board's acceptance run, 32X-only frames every 250th; PicoDrive every 10th frame and every frame from 5,300 to 6,300, BlastEm every 2nd from 4,500 to 9,000): | Picture (board frame) | PicoDrive | BlastEm | | --- | --- | --- | | direct colour (5,250; 5,500) | 418 differ, all in x 96-230, y 25-37 | 418, the same area | | packed pixel (5,750) | 417, the same area | 417, the same area | | run length (6,000) | **0** | **0** | | three modes in one frame (6,250): rows 16-79 packed, 80-143 direct, 144-207 run length, switched by the 68000 from Mega Drive H interrupts | 34,324 (PicoDrive shows no 32X picture on this screen at all, in any frame) | 989, all on rows 15, 79, 143 and 207 | | colour bars, direct colour (6,500) | 31,360, x 40-319, y 0-111 | 394, x 112-222, y 25-37 | Every difference, explained: - **The Mega Drive's layer.** The 418/417/394 pixels at y 25-37 are the program's title ("DIRECT COLOR MODE" and so on), drawn by the Mega Drive VDP: in the detectors' composite, absent from the board's 32X-only frame. In the colour-bar screen PicoDrive shows the Mega Drive's own bars over the top half, where the 32X's pixels are black with the through bit clear and PRI = 0; BlastEm shows the 32X's black there. That is the composite rule (open item 1, milestone 4), and the two detectors disagree on it. (**Corrected at milestone 4**: they do not; the BlastEm frame compared was one before its Mega Drive bars appeared. "Milestone 4", below.) - **The three-modes screen.** The program points rows 0-15 and 208-223 at blank-mode data and changes the bitmap mode at the 16th, 80th, 144th and 208th Mega Drive H interrupt of the frame; its line table puts each band at exactly those rows. The board changes mode at rows 16, 80, 144 and 208 (the write lands before that row's register latch, 76 dots after its HBLANK); BlastEm changes it a row earlier, so its rows 15, 79, 143 and 207 show the next mode reading the previous band's data (its row 79: direct colour from the packed map). PicoDrive draws nothing on this screen. Which row the hardware switches at rests on the latch's place against the Mega Drive's H interrupt (`Quirks.hblank_phase`); the board's matches the program's own layout. - **Colour levels.** At a tolerance of 0 most pixels differ; at 8 none does. Each emulator expands the 32X's 5-bit levels to 8 bits its own way (the board `v << 3 | v >> 2`, `Quirks.rgb_levels`; PicoDrive through RGB565, whose 6-bit green the frame grabber scales by 255/63; BlastEm its own way). The RAMDAC's real levels are unmeasured. - **Which frame shows which picture.** The texture demo is paced by frames: the board's frame N is PicoDrive's N - 7 and BlastEm's N + 1 throughout (the boot's length: PicoDrive runs no boot ROM). The run-length demo draws as fast as its SH-2s can, and the board draws more slowly: its frame 600 is PicoDrive's 307 and BlastEm's 413 (PicoDrive about 1.95 board frames per picture, BlastEm about 1.45). That is the SH-2s' speed in emulated time (milestone 2's waits and arbitration, `Quirks.sh2_waits`; how each detector times its SH-2s is not read here), not the VDP: run with the palette wait switched off the board's mapping is unchanged (frames 100, 200, 300 -> PicoDrive 44, 98, 148, as with it). - **The 240p suite's transitions** (its fade between screens) land on different frames; the static screens match. What this does not test: the composite and its priority (milestone 4), H32, PAL/240 lines, the line timing's phase (the pictures are drawn whole between VBlanks). ## Milestone 4: the composite against the detectors (2026-10-30) **Detectors only** ([claims.md](claims.md)). The board's frames (`scripts/run_32x.py`, the user's boot ROMs; `fNNNNN.png` the composite, `-32x.png` the 32X's, `-md.png` the Mega Drive's) against PicoDrive 1008a98 (no boot ROMs) and BlastEm 1.0.1-pre (the user's) through `scripts/libretro_frames.py`, with the same pad presses. ares and jgenesis are not built here, so no frame of theirs exists (ares's rule is read from its ISC source). Games animate each layer on its own clock, so whole-frame pixel counts say little; `scripts/compare_composite.py` sorts each differing pixel by the layer the board took: `took-32x` counts pixels where the detector shows the 32X's pixel and the board the Mega Drive's, `took-md` the reverse, and a rule difference survives every animation phase while a phase moves between frames. A channel differing by more than 36 counts for PicoDrive (its Mega Drive levels are its own: 238 to the DAC model's 255) and by more than 12 for BlastEm. Frames in `reference/m4/` (git-ignored). | Program, screen | Mega Drive | 32X | PicoDrive | BlastEm | PicoDrive against BlastEm | | --- | --- | --- | --- | --- | --- | | Knuckles' Chaotix, gameplay (frame 1,750) | H40 | packed, PRI 1 | 33 pixels, took-32x 0, took-md 6 | **0**, except row 223 (320) | row 223 and sprite phase | | Knuckles' Chaotix, title (750, 800, 850) | H40 | packed | took-32x 0, took-md 3-58; about 10,000 others | took-32x 320-333, took-md 81-172 | palette and floor phase | | Spider-Man, title (1,800, 2,000) | H40 | packed, PRI 0 | took-32x 21 or 0, took-md 0 or 156 | took-32x 18 or 0, took-md 0 or 139 | **0** at frames 1,770/1,774 | | Spider-Man, menu (2,300) | H40 | packed, PRI 0 | **0** | **0** | **0** | | Spider-Man, newspaper (2,500) | H40 | packed, PRI 0 | **0** | **0** | **0** | | Spider-Man, Marvel screen and copyright (850, 1,050) | H40 | packed | **0** | **0** | - | | NFL Quarterback Club, menu (3,060) | **H32** | packed, PRI 1 | 32X logo: same place; Mega Drive: same place; 10,855 others (below) | 32X logo: same place; Mega Drive: 1 pixel left of the board; 13,320 others | 11,857 | | 240p suite 1.0: main menu, Test Patterns, Color Bars (140, 300, 600) | H40 | 32X over backdrop | **0** on all 3 | **0** on all 3 | - | | Mars Check, DIRECT COLOR, PRI 0 through 0 (manual, 675) | H40 | direct | **0** | **0** | **0** | | the same, PRI 1 (750) | H40 | direct | **0** | **0** | **0** | | the same, PRI 1 through 1 (950) | H40 | direct | **0** | **0** | **0** | | the same, PRI 0 through 1 (1,050) | H40 | direct | **0** | **0** | **0** | | the same, back to PRI 0 through 0 (1,275) | H40 | direct | **0** | **0** | **0** | | Mars Check, COLOR BAR (manual, 1,600) | H40 | direct, PRI 0 | **0** | **0** | **0** | | Mars Check, automatic run: direct colour, run length (5,500; 6,000) | H40 | | **0** | **0** | **0** | | Mars Check, automatic: three modes (6,250) | H40 | | (PicoDrive draws no 32X picture here, Milestone 3) | 989: rows 15, 79, 143, 207, as Milestone 3 | - | | Mars Check, automatic: colour bars (6,500) | H40 | direct, PRI 0 | **0** (frames 6,004, 6,040) | **0** (frame 6,128) | **0** | Every difference, explained: - **Layers animate.** The Chaotix title's palette cycle and floor, Spider-Man's flames and lasers, and the HUD's first frames run on their own clocks; the counts above that are not 0 are of those, and the layer map of each screen shows the same picks (Spider-Man at frame 1,800: both detectors and the board take the Mega Drive on the lasers and the lit windows, a scattering of pixels apart on the flames' edges). - **BlastEm's row 223.** On Chaotix BlastEm shows the 32X's pixels across the last row (320 pixels), where the board and PicoDrive show the Mega Drive's plane. Every other row agrees, and PicoDrive sides with the board. A BlastEm matter, not the rule (not chased further). - **Colour levels.** PicoDrive's Mega Drive levels are its own: at a tolerance of 12 its Mega Drive layer differs, at 36 it does not. BlastEm's are within 12 of the board's. The 32X's levels as Milestone 3 found (`Quirks.composite_levels`). - **Which frame shows which picture.** As Milestone 3: on Chaotix the board's frame N is BlastEm's N + 2. - **H32.** The board's output pixel takes the Mega Drive pixel under its centre; PicoDrive and BlastEm resample their own ways (BlastEm's frames blend across pixel boundaries), so columns of the Mega Drive's layer differ, and the menu's scrolling Mega Drive background is at a different phase. The 32X's logo falls in the same place on all three; the Mega Drive's buttons in the same place on the board and PicoDrive, 1 pixel left on BlastEm, so BlastEm's frames put the two pictures about 3.75 of the 32X's pixels apart (OBSERVED). So both detectors' frames, and ares's source (26 MCLK), put the 32X 3 to 4 pixels right of the Mega Drive's left edge. **Session 9** set 30 MCLK (3.75 pixels), and the board took it; that derivation used figures from Nuked-MD's source and is struck as evidence (2026-11-19). **The wave-2 rewrite (2026-11-19) set it back to ares's 26 MCLK** (output pixel x takes the 32X's x - 3, the line 323 wide), which restores the relation PicoDrive's frames show; BlastEm's frames' 30 is recorded as a difference (provisional either way). The rest of this paragraph is the Session 9 record: each 32X pixel then lay one output column further right (output pixel x takes the 32X's x - 4, was x - 3), the Mega Drive's layer does not move, and the line is 324 wide. On the NFL menu the board's logo now sits 1 pixel further right of the Mega Drive's buttons than PicoDrive's does, which is the two layers' relation in BlastEm's frames (whose buttons sat 1 pixel left of the board's and PicoDrive's, the logo in the same place). Not rerun (a 3-hour run, out of Session 9's limits): recomposed from Milestone 4's saved frame 3,060 (`f03060{,-32x,-md}.png`) by moving each 32X-taken pixel one column right, about 4,726 of 72,352 pixels change, all at the 32X layer's edges (approximate: YS and the through bit are not in the PNGs). What the games say about the rule: - **Near's conflicting pair does not conflict here.** On the board Spider-Man runs with PRI = 0 throughout (it logs every 50th frame), not the PRI = 1 Near reported (t=3218), and Mega Drive pixels (the lasers, the lit windows) show through 32X pixels behind them; Chaotix's gameplay runs with PRI = 1, its 32X sprites over the Mega Drive's planes. One rule, the Manual's, gives both pictures and both detectors agree. Why Near saw otherwise in 2021 is not established; ares's current rule is this one. - **The Mars Check colour-bar screen: the disagreement of Milestone 3 was not one.** The Mega Drive's bars are plane B, colours 8-15 of palette 3 (`GRAPHTST.ASM`, `SYSDATA.ASM`), over the top half; the 32X's are the bottom half, its top half black with PRI = 0 and through = 0: the program's own design to set the two side by side, so colour against colour. By the rule the Mega Drive's bars show, and so they do on the board and on both detectors, 0 pixels apart. Milestone 3's comparison searched BlastEm's frames for the closest to the board's **32X-only** picture and so found a frame of the transition, before the Mega Drive's bars were drawn. - **What "transparent" means was not separated.** On every screen here the board's YS, BlastEm's colour 0 and PicoDrive's backdrop index give the same picture: nothing tested has a backdrop on a non-zero colour, or a plane pixel of the backdrop's index, where it shows. Sega's own test (the DIRECT COLOR screen, A toggling PRI and C the through bit) gives all four states and all three agree on each. - **Nothing here tests H40 alignment.** No screen shows two layers needing to line up to the pixel in a way a detector could not also get wrong. The one-on-one rested on the detectors' agreement; since Session 9 on Sega's *32X H/W Information* (item 4, within half a dot) (`Quirks.composite_alignment`). - **Shadow/highlight**: not established whether any screen here has it on while the 32X draws (nothing logged it); no difference points at it. What this does not test: interlace, PAL 240 lines, S/H under the 32X, the switch inside a pixel, the analog path. ## Milestone 5: PWM against the detectors (2026-11-04) **Detectors only for the sound** ([claims.md](claims.md)). The board's runs are `scripts/run_32x.py --wav` (the mix through socket 8) and `--pwm-log` (the PWM's own duty cycles); the detectors' are `scripts/libretro_frames.py --wav`: PicoDrive (no boot ROMs) and BlastEm (the user's), the builds of milestone 0. `scripts/compare_audio.py` compares them after a common two-pole 100 Hz high-pass; outputs in `reference/m5/` (git-ignored). Each emulator has its own level, DC and time base, so nothing is compared sample for sample. ### The Mars Check Program's sound tests (137-156), 2,800 frames Reached through its manual menu (Start held at start-up, then SOUND CHECK, and in it 68000 SOUND, SH2 SOUND and MD Z80 in turn; the presses are `reference/m5/mars-sound-presses.txt`, the same on all three, with Start from frame 1 on PicoDrive). **The program's own verdict:** every test's name printed, no error message, each group ending in its "press any key" (in the manual menu an error prints its message and goes on, as SoundTest's `?err` does); the 68000 tests' last step waits for EMPTY, the SH-2 tests' for "OK" in a communication port. The verdict is function only ([claims.md](claims.md)). What they play: a 44-word sine (widths 2-520) at cycle 1042 from the 68000 and the Z80 (each width written doubled; the Z80 as two bytes), at cycle 521 from the SH-2s, by polling FULL, from the PWM interrupt (TM 1, one word to `$38` each) and by DMA channel 1 (TM 1, RTP, a longword to `$34` each DREQ1). Per test, the middle 80 % (`compare_audio.py segments`; PicoDrive's rate scaled by 0.99870): | Tests | Sides (L/R) | Board | PicoDrive | BlastEm | Shape against the board | | --- | --- | --- | --- | --- | --- | | 68000 mono, L, R, L->R, R->L (137-139 and pans) | as named; pans move L to R and back | 502.39 Hz | 502.29-502.33 | 502.87 | 0.999-1.000 both | | SH-2 master and slave, polling (140-149) | as named | 1,005.74 Hz | 1,005.54-1,005.57 | 1,007.68 | 0.999-1.000 both | | PWM interrupt, master and slave (150-151) | both | 1,005.83 | 1,005.60 | 1,007.68 | 0.999-1.000 | | PWM DMA write, master and slave (152-153) | both | 1,005.74 | 1,005.57-1,005.60 | 1,007.68 | 0.999-1.000 | | Z80 mono, L, R (154-156) | as named | 502.39 | 502.29-502.32 | **2,846-2,875, not a sine** | PicoDrive 0.999-1.000; BlastEm 0.05-0.24 | (Stretches where two tests on one side run together -- the pans' second halves and the next test -- are left out: the phase jumps between them; the table's tests are measured alone.) The board's frequencies are what its period gives exactly: 23,011,360 / 1,041 / 44 = 502.39 Hz and / 520 / 44 = 1,005.74 Hz, and its `--pwm-log` has every cycle 44 samples long with no held sample inside a test. **Differences, with the board's choice:** - **Period**: BlastEm cycle - 2 (502.87, 1,007.68 Hz), as on the sample; PicoDrive within 0.02 % of the board once its rate is corrected. Board: cycle - 1 (`pwm_period`). - **The Z80's byte writes**: on BlastEm the Z80's high-then-low pairs come out as noise around 2.9 kHz, as if each byte queued an entry (OBSERVED); PicoDrive plays the sine as the board does, and the board queues on the odd byte (`pwm_byte_writes`, as ares does). - **DREQ1**: all three play the DMA tests; the board's one transfer per timer event gives the same 44-sample cycle as polling (`tests/test_pwm.py` pins the count). - **Level**: PicoDrive 2.25-2.35 times the board, BlastEm 1.22-1.33 (`pwm_gain`). - **Pops** at each test's start and end on all three, of each one's own size. ### Sega's PWM sample ("32X Sample Program - PWM Sound Demo", 480 frames) The program sets cycle 1047 (21,999.4 Hz on the board), TM 3, both outputs, and from the master SH-2's PWM interrupt writes three words to `$38` each time; no DMA. Compared over 2.5-7.5 s (the board's clock), 50 ms windows each re-aligned within 7 ms: | Against the board | Correlation, median (10th percentile) | Drift | Level | Third-octave spectra | | --- | --- | --- | --- | --- | | PicoDrive | 0.986 (0.973), both sides | -1,091 ppm | x2.38 | 0.891 | | BlastEm | 0.988 (0.912), both sides | -954 ppm | x1.31 | 0.985 | | (BlastEm against PicoDrive) | 0.985 (0.895) | -186 ppm | x1.81 | 0.944 | The board's waveform agrees with each detector as closely as the two agree with each other. **Differences, with the board's choice:** - **Period.** BlastEm's -954 ppm is 1,046 / 1,045: its period is cycle - 2. PicoDrive's -1,091 ppm is mostly its libretro core's rate (735 samples a frame at 59.92 frames/s called 44,100 Hz: -1,300 ppm), less what its frame-wise resampler wanders. The board keeps cycle - 1 (`pwm_period`): ares's source, and PicoDrive's tones within 0.02 % (OBSERVED); the Manual's "cycle x Scyc" says cycle, and nothing here can tell them apart. - **Level.** PicoDrive plays it 2.38 times the board's level, BlastEm 1.31 times, each against its own FM: three different assumptions (`pwm_gain`), none measured. - **Spectrum above 5 kHz.** PicoDrive's is fuller than BlastEm's and the board's (OBSERVED; how each makes its output is not read here); the board's socket 8 interpolates linearly onto the FM's grid and does not model the 32X's integrator (`pwm_output_level`). - **Start.** All three pop when the PWM starts: the board 11,939 (eight times the programme's peak, its unipolar level meeting the Mega Drive's coupling capacitor), PicoDrive 28,616 and BlastEm 16,384 (each about eight times its own programme's peak), from their own centring. Not claimed either way. - **When.** The board's sound starts 70 ms after PicoDrive's and 70 ms before BlastEm's: boot time, not PWM (PicoDrive runs no boot ROMs). ## Milestone 5b: the SH-2 bus against the 32xspd photograph (2026-11-04) **Documents, not hardware** ([claims.md](claims.md)): the costs come from the Manual and Hitachi's SH7604 manual; the only measurement is bakemono's 32xspd benchmark photographed on one NTSC console (Research, above). The board runs the same ROM (`scripts/run_32xspd.py`, reading the results from SDRAM) and gives each loop's SH-2 clocks per iteration (16 bytes in four longword accesses; "sparse" touches four 16-byte lines). The loops' instruction costs are sh2-python's; the board's part is the bus. Both board runs started together, PyPy, genesis, load 55-100. | Loop | hardware KB/s | clocks/iter | before (69c2c19) | after (a5a606c) | what decides it | | --- | ---: | ---: | ---: | ---: | --- | | cached read | 31,840 | 11.31 | 11.39 | 11.39 | the core's pipeline (no bus) | | SDRAM read (one line fill per iteration) | 16,304 | 22.08 | 35.27 | 35.21 | **the core's SDRAM cycle** (24 states a fill against HM's 10-12) | | ROM read (cached, a 16-byte fill per iteration) | 4,704 | 76.53 | 83.65 | **75.51** | cartridge waits: 2 + 6 a word | | sparse SDRAM read (four fills) | 6,992 | 51.49 | 105.64 | 105.64 | the core's SDRAM cycle | | sparse ROM read (four fills) | 1,328 | 271.10 | 300.01 | **267.87** | cartridge waits | | sparse SDRAM uncached (four longwords) | 7,008 | 51.37 | 31.04 | 32.01 | the core's SDRAM cycle: no 8-word burst for cache-through reads (HM 7.5.4) | | sparse ROM uncached (four longwords) | 4,800 | 75.00 | 80.65 | **72.58** | cartridge waits | | SDRAM write (four longwords) | 26,608 | 13.53 | 25.66 | 25.63 | the core's SDRAM cycle (3 a word against HM's 1 on an open row) | | VRAM write (eight frame-buffer words) | 8,752 | 41.14 | 32.75 | **40.91** | the write FIFO: 5 a word once full | | SDRAM-VRAM copy | 7,728 | 46.59 | 58.90 | 52.82 | SDRAM reads too slow, FIFO right | | ROM-VRAM copy | 3,552 | 101.36 | 107.15 | 92.60 | cartridge reads overlap the FIFO's drain on the board; the hardware's 9 clocks more an iteration are **unexplained** (Session 8, below: no document gives a rule that closes it; display fetches ruled out) | What it says: the cartridge figures (within 1-3 %) and the frame buffer's write rate (0.6 %) land on the photograph; every SDRAM figure is the core's, too slow for fills and writes and too fast for cache-through reads, as [sh2-python-sdram-pr.md](sh2-python-sdram-pr.md) predicts. The photograph is one console and one exposure; it judges nothing, but it is the only number from hardware, and the board now disagrees with it only where the documents say the core must change. ### The ROM-VRAM copy, investigated (Session 8, 2026-11-05): unexplained, not tuned **The loop** (32xspd at `$02001428`, disassembled with sh2-python's `disasm`): four `MOV.L @R1+,R2` from cached ROM (`$02000000`, 8 KB a batch, so every line misses: a 4 KB cache) each followed by a `MOV.L R2,@(n,R3)` to the frame buffer (`$04010000`, the draw buffer: the program swaps FS first), then `ADD #16,R3`, `CMP/EQ #1,R0`, `BF/S`, `ADD #-1,R0`. Per iteration on the bus: **one line fill of 8 cartridge word cycles, then 8 frame-buffer word writes**. The 68000 runs from work RAM (`$FF0000`) and the slave spins in cached SDRAM (`$06001010`), so neither touches the cartridge or the SH-2 bus. **The board, traced** (a copy of the ROM patched to branch from the first test to this one, `BRA` at `$02001088`; 4,204 iterations): 4,186 of them are exactly 91 states: the 8 writes at 3 states each (the 8th waits 2 for room), the fill starting as the last write ends, 8 x 8 = 64, then 1 state to the next write. The other 18 are the outer loop's COMM6 reads. The benchmark's figure (92.60) is the steady 91.3 plus its batch overhead; the photograph's 101.36 is about 100 steady, so the hardware spends **about 9 states more an iteration**. **A toy of the steady state** (8 writes through a 4-word FIFO draining one word per 5 states, then a fill of F states and 1 state), with F from the photograph's own read loops (ROM: 76.53 - 11.31 = 65.2; SDRAM: 22.08 - 11.31 = 10.8), against the photograph's two copy loops (steady, about 100 and 45.9): | Rule for the fill against the FIFO | ROM-VRAM | SDRAM-VRAM | Source | | --- | ---: | ---: | --- | | overlaps the drain (the board) | 92.2 | 40.0 | Manual 3.1 / 4.1 say nothing against it | | waits for the word leaving now (the board's frame-buffer *read* rule) | 94.2 | 40.0 | none for the cartridge | | waits for the FIFO to empty | 109.2 | 54.8 | none | | the drain stops while the fill is on the bus | 105.2 | 50.8 | none | | overlaps, plus a fixed 7-8 states an iteration | 99.2-100.2 | 44.8-45.8 | none: a fitted constant | What this says: **the SDRAM-VRAM copy shows the same kind of shortfall** once the core's SDRAM fill is the documents' 10-12 states (the loop is then FIFO-bound at 40 under the board's rule, against 45.9), so the missing time is not the cartridge's: it goes with alternating frame-buffer writes and reads elsewhere. No rule a document states fits both: each serialising rule overshoots both loops by about 5 states, the overlapping ones fall 5-8 short, and only a fitted per-iteration constant lands on both. The board keeps overlap and the gap stays listed. **Hypotheses, with their verdicts:** - *The VDP's display fetches slow the FIFO's drain* (the candidate milestone 5b named): **no.** The frame buffer is "1 Mbit DRAM x 2 (alternating draw/display)" (Manual 1.1, "New Screen Offered"), the program writes the draw buffer, and the pure write loop (the same FIFO, the same frame position, drain-bound) lands at 41.14 against the board's 40.91. - *A cartridge read waits for the FIFO to drain* (one path through the 32X's bus controller): **not stated anywhere** (Manual 3.1, 3.4, 4.1; Sega's *32X H/W Information* MAR-25-R5/R6-060694, "32X I/F Implementation Time"), and it overshoots: 109 against 100. Manual 3.4 serialises the cartridge only between the 68000 and the SH-2s. - *A cartridge access serialises with the frame-buffer write under way* (the board's read rule applied to the cartridge): not stated; +2, a fifth of the gap. - *The SH-2's write buffer* (HM 7.11.2): the core models it (`_wb_end`: the miss waits for the buffered write's cycle), which is what lets the fill start as the last write ends; it makes the loop faster, not slower. Nothing to change. - *HM 7.9's idle cycle* (a write right after a read gets one, even with WCR's IW = 0): a document rule the core does not model, but the loop already has a 1-state gap between the fill and the first write, which HM says is subtracted: **0** here. - *SDRAM refresh* (HM 7.2.5-7.2.7, 7.5.7): the boot ROMs' RTCSR $08 and RTCOR $59 ask for an auto-refresh every 356 states, each holding the bus 2 (Tp, Trr) to 7 (with MCR's TRAS + 2) states; the core makes none. That is 0.6-2 % of any bus-bound loop: about 1 state an iteration here, and the right size for the 1-3 % the board's other cartridge loops are fast by. A core change (sh2-python), listed with the SDRAM PR. - *The FIFO's documented shape*: the *H/W Information* table (Target Ver. 2.0) gives frame-buffer writes 1st-4th 3 clocks, 5th and after 5, "continuous access with no Idle Cycle", shortened by idle cycles to no less than 3: the board's FIFO exactly. Read as a per-access count that the fill does not break (the fill is not idle on the bus), all 8 writes would cost 5: about 105, again an overshoot. ### The rickroll player (reference/rickroll/c1v_0, sha1 12ff371e) `scripts/run_32x.py` 700 frames, genesis, `--png-every 1`; checked with its own `verify_run.py` (every shown frame an expected picture, in order). Profile: the player's COMM8/COMM10/COMM4 (FRT ticks of 128 clocks) as fields of 384,017 SH-2 clocks, mean over the frames shown after the first. | | before (69c2c19) | after (a5a606c) | | --- | --- | --- | | frames checked | 133 of 375 seen, in order, **0 unknown**; first picture at hardware frame 121 | 142 seen, in order, **0 unknown**; first at 137 (boot: CS0 is 16 bits) | | fields per video frame | {3: 11, 4: 71, 5: 43, 6: 4, 7: 3}, mean 4.37 | {2: 3, 3: 31, 4: 84, 5: 16, 6: 3, 7: 4}, mean 3.98 | | master decode / convert / slave wait | 2.380 / 1.330 / 0.215 fields | 2.017 / 1.299 / 0.263 | | SH-2 instructions at frame 700 | 116,394,290 / 124,627,309 (the reference run.log's, exactly) | 123,114,007 / 131,221,594 | Decode is faster by the one state the board no longer adds to each 32X-space cycle (the stream is read from the cartridge); conversion trades 4 states a frame-buffer word for 3 with room and 5 when full. The SDRAM, where most of the decode's misses go, is unchanged until the core shapes its cycles. ## Save states (Session 10, 2026-11-05) `src/sega32x_python/savestate.py`: the whole machine pickled at a frame boundary, ROM and BIOS bytes named by role and SHA-1, not written. The judge is determinism: a run of N + M frames straight against N frames, a save, a **fresh process** that loads and runs M. Each pair compared byte for byte: every PNG of the M frames (the composite, the 32X's alone, the Mega Drive's: `scripts/run_32x.py --png-every 1`), each frame's status line (SH-2 instructions, the 68000's PC, the comm ports, the 32X mode) and the final counts (68000, Z80 and SH-2 instructions, MCLK), and the WAV of the M frames. PyPy 3.11, megadrive-python 44ab15d, sh2-python d55bbb0. | Program | N + M | Pictures (M frames x 3) | Counts at the end | Sound | State, save / load | | --- | --- | --- | --- | --- | --- | | testpico 30a5783, cold | 60 + 50 | 150 identical | identical: SH-2 11,837,712 / 11,875,672, 68000 1,132,967, Z80 69,796, MCLK 98,559,164 | - | 82,330 bytes, 1.74 s / 1.58 s | | Sega's PWM sample, FM on | 125 + 45 | 135 identical | identical: SH-2 19,200,871 / 19,807,889, 68000 3,049,341, MCLK 151,431,382 | WAV identical (33,118 samples, the sample playing: peak 11,942) | 55,944 bytes, 0.26 s / 0.42 s | | rickroll player (c1v_0) | 140 + 60 | 180 identical | identical: SH-2 29,596,022 / 40,405,404, 68000 1,998,207, MCLK 178,312,551 | - | 183,520 bytes, 1.14 s / 1.00 s | The rickroll frames, the saved run's 1-140 and the loaded run's 141-200 in one directory, pass its own `reference/rickroll/r32x/verify_run.py` as the straight run's do: first picture at hardware frame 137, 16 video frames seen in order, 0 unknown. A loaded run's first frames run at about half speed while PyPy's JIT warms up (testpico: 7.5 s for frame 61 against 3.7 s straight); the loaded testpico run's 50 frames took 213 s against the straight run's 207 for the same frames. (testpico's counts are from a second save and load at the final source, its frames and status lines from the first; each pair matched.) A state written by PyPy loads on CPython 3.14 and runs on identically (the rickroll state, frames 141-144: 12 PNGs, the status lines and counts). A state is refused for another cartridge, boot ROM, core or board revision (`--any-board` overrides the last). What the state holds is what the objects hold: the 68000, Z80, VDP, FM, PSG, I/O and cartridge (SRAM, mapper, EEPROM) of the Mega Drive; the 32X's registers, comm ports, DREQ FIFO, frame buffers, palette, VDP latches and events, PWM FIFOs and counter, the SH-2 bus's arbitration and frame-buffer FIFO; both SH-2s whole -- registers, pipeline, every on-chip module, the cache's tags, valid bits, LRU and lines, the write buffer's end, pending interrupts and scheduled events -- and the sound path's filters and leftovers. sh2-python's own `ChipState` would not be enough: it leaves out the cache's contents and the write buffer (it is not used). Three things in the cores were worked around on the board's side until 2026-11-07 ([megadrive-python-state-pr.md](megadrive-python-state-pr.md)): megadrive-python keyed socket 8's leftover samples by `id(source)`, and m68000-python and sh2-python built their dispatch tables in the first constructor. All three are fixed in the cores and the workarounds are gone (worklog.md, Session 16); a load in a fresh process that has built no console is now a test, and the PWM sample's 125 + 45 run is byte for byte again on the new pins (135 PNGs, 45 status lines, the WAV and the final counts). A fast round trip on a synthetic machine (both SH-2s counting in SDRAM through the board's bus, the 68000 in RAM) is `tests/test_savestate.py`, with the refusals for another cartridge or boot ROM. ## Rungs (the board's acceptance ladder) Each rung names its judge; [handoff-brief.md](handoff-brief.md) gives the milestones they belong to. | Rung | What | Judge | Detectors | | --- | --- | --- | --- | | 0 | referees tabulated per test (testpico, Mars Check) on PicoDrive, MAME, and ares/jgenesis if built | - | all | | 1 | a passive 32X (ADEN = 0) changes nothing on the Mega Drive | megadrive-python's own gate (lockstep, VDPFIFOTesting, compat sweep 0 rows) | - | | | **passed 2026-10-23** at 26dd029: 6 lockstep replays 0 unexplained, VDPFIFOTesting identical on ten machines, mini sweep 0 of 115 rows moved ([worklog.md](worklog.md), Session 1); testpico `md rom`, `reg w` (68000 half), `md fb`, `md bios` pass as 68000 programs | | | | 2 | the 68000-side registers and windows | testpico `md rom`, `reg w`, `md bios`, `md fb` | PicoDrive, ares | | 3 | SH-2s on the bus: boot, comm, CMD, DREQ, SDRAM, RV, VRES | testpico's 14 32X tests; Mars Check system tests | PicoDrive lockstep (per-instruction, SH-2 and 68000) | | 4 | 32X VDP alone | Mars Check VDP tests; testpico `irq vint` | PicoDrive/ares/jgenesis frames; 240p suite | | | **passed 2026-10-29** at 3ad5c20: Mars Check 161/161, ERROR COUNT 0, "all finished normally"; testpico's twelve 32X tests (`irq vint` included); run-length and texture samples and the 240p suite 0 pixels apart from PicoDrive and BlastEm (colour levels aside); passive gate unmoved ([worklog.md](worklog.md), Session 4) | | | | 5 | composite | **none** (claim says so) | three emulators' frames, Chaotix, Spider-Man, NFL QBC | | | **done 2026-10-30, detectors only**: PicoDrive and BlastEm frames, every difference listed in "Milestone 4"; [claims.md](claims.md) | | | | 6 | PWM | Mars Check PWM tests (function only) | emulator audio; level labelled an assumption | | | **done 2026-11-04, detectors only** for the sound: see "Milestone 5"; [claims.md](claims.md) | | | | 6b | SH-2 bus costs | **none** (claim says so: documents) | the 32xspd photograph (research); the rickroll player's frames still in order | | | **done 2026-11-04, documents only**: see "Milestone 5b"; [claims.md](claims.md) | | | | 7 | games | compat sweep triage | detectors per row | | | **under way 2026-11-24**: smoke list 27/27 and releases 33/33 run 1,200 frames clean; 0 untriaged of 60 (`tests/sweep_triage.txt`); betas and prototypes started ([status.md](status.md); [worklog.md](worklog.md), Session 18) | | | | 8 | Sega CD 32X | boot to FMV | PicoDrive, if it runs the combination (to check at that milestone) | ## What a judge would cost to add - A **video capture** of a 32X over a Mega Drive (the 240p suite and a purpose-built priority ROM) would make rung 5 judged. - A **logic analyser** on the slot (YS, HSYNC, EDCLK, DTACK) would settle the composite's phase, the 68000 waits and the H32 case. - An **audio recording** of the PWM sample against a Mega Drive tone would fix the gain.