# Hardware quirks, revisions, contested values and open questions Each entry names its source and tier ([validation.md](validation.md), "The tier rule"). An entry with only emulator sources is a lead, not a fact. Only ares (ISC) and MAME's BSD-3 `mega32x.cpp` are read as source; PicoDrive, jgenesis, BlastEm and the MiSTer core are closed boxes, and what they did when run here is marked OBSERVED. Statements that rested on reading their source were struck on 2026-11-19. The board's `machines` data should carry each quirk as a field with a comment naming its source. ## Models and revisions - **Board revisions**: Genesis 32X VA0 and VA1, Mega Drive 32X (service manual No. 012 covers both). The service manual's capacitor table shows parts populated only on VA1 (C96/C97 "VA1 ONLY", `A408a`) and three SH-2 part numbers (315-0922, 315-0922A, 315-0998). Whether VA0 and VA1 differ in behaviour: unknown; no source compares them. - **SH-2 revision**: early 32Xs use the SH-2 "2.5 cut", which loses a high-priority interrupt that arrives within 3 cycles of a low one (Toshiyasu Morita, *Programming the 32X FAQ*, quoted in the 32XDK wiki). Supplement 2 and Bulletin #27 give the workaround every game uses. Which part numbers are the 2.5 cut: not stated anywhere pinned. This belongs to sh2-python as a variant; the board chooses the variant. - **Region**: PAL 32Xs run at 22.8 MHz and allow 240 lines; the VDP's PAL bit is read from the Mega Drive's NTSC/PAL line (`A408a`, IC6 pin 69). A Sonic Retro forum user reports a 32X "region lock" refusing some US and Japanese ROMs (seen in a web search on 2026-10-21, not pinned); mechanism not established, and probably the cartridge's own region check against the Mega Drive's version register. ## The bus and memory map - **RV and the 68000's low map.** With ADEN = 1 and RV = 0 the cartridge is gone from `$000100-$3FFFFF` (Manual 3.1). What the 68000 then reads there is not documented. Open. - **Twelve bytes not read with RV = 1**: `$1070-$1073`, `$2070-$2073`, `$3070-$3073` "not normally read" (32XDK wiki "About ROM read when RV=1", from Sega's technical notes). It suggests the 32X's writable HINT vector at `$70` decodes only some address lines and answers for those mirrors while RV = 1. No test pins it. Open. - **The HINT vector at `$000070`** is writable by the 68000 and reads 0 after reset (testpico `t_32x_md_rom`, `main.c` lines 2099-2104: expects 0, writes, reads back; ares makes it writable too). Hardware-corrected. - **RV = 1 with the SH-2s running from the cartridge can hang the SH-2s**; Chilly Willy's procedure parks both in SDRAM first (32XDK wiki, Bank-switching). Research tier. - **68000 interrupts must be off while RV = 1** (Bulletin #9): the vectors become the cartridge's. Specification. - **Frame buffer zero writes**: a `$00` byte write to the frame buffer is ignored; a `$0000` word write works; the overwrite image ignores any `$00` byte, in byte or word writes (Manual 3.3; 32XDK wiki "Writing to the framebuffer"). Specification; the Mars Check Program's byte-write and overwrite tests (89-100) pass on the board and both detectors run here. - **Undocumented frame-buffer mirror** at `$24040000-$2405FFFF` (and possibly the overwrite image at `$24060000`), used by the prototype Soulstar X (32XDK wiki; ares issue 744). Emulator-derived. - **Simultaneous SDRAM writes from both SH-2s** "will most likely lock up the system" (32XDK wiki). Not modelled until a test shows it. - **Where a cycle falls in the Manual's wait ranges** (cartridge 6-15, frame buffer read 5-12, write 1-3): the Manual gives ranges, not rules. The board's reading (milestone 5b, below): the low end, plus the contention it models (the 68000 on the cartridge, the write FIFO). Bakemono's 32xspd benchmark, photographed on hardware, is the one published measurement (research tier); jgenesis's issue 493 discusses fitting to it. - **Z80 and the 32X**: Technical Note 22 forbids banking the Z80 onto `$000000-$3FFFFF` or `$840000-$9FFFFF`; Note 15 says Z80 writes to `$840000-$9FFFFF` and `$A15100-$A153FF` lock the 68000, "supposedly fixed" (32XDK wiki). Which revision fixed it: unknown. - **SEGA TV register** (`$A1511A`): only bits 0 and 8 are writable (testpico `t_32x_init`, `main.c` line 1999: `$FFFF` written, `$0101` expected). Hardware-corrected. - **DREQ FIFO from the SH-2 side**: what an SH-2 reading `$20004012` directly gets, outside DMA, is not documented. Open. - **Communication ports** written by both sides at once: undefined (Manual). Games avoid it; no model needed beyond last-writer-wins, labelled. ## The VDP - **Priority and the through bit**: Near could not satisfy both Spider-Man and Knuckles' Chaotix with one rule (spritesmind t=3218, 2021, unresolved there). The Manual's rule (3.3 "Priority", figure 3.9, read off the scan, PDF page 48): BG < 32X < MD with PRI = 0, BG < MD < 32X with PRI = 1, a through-bit pixel on the other side of the Mega Drive; the Mega Drive at colour code 0 and the 32X in blank mode are transparent; both transparent shows the MD background. ares has this form; PicoDrive's and BlastEm's frames agree with it on every screen compared (OBSERVED). See "The composite" below for what the board chose. - **YS and shadow/highlight**: TmEE: the Mega Drive VDP asserts YS where no plane or sprite pixel is drawn, and never draws colour 0 of any palette, so YS covers exactly the backdrop (t=3218; he is "not completely sure" of the priority logic). What YS does for shadowed or highlighted backdrop, and for the S/H operator sprites (palette 3 colours 14 and 15): unknown. - **H32 on the Mega Drive while the 32X displays**: NFL Quarterback Club does it in its menus (seen on the board, PicoDrive and BlastEm). One reading: EDCLK keeps its H40 rate, so the 32X's 320 pixels have the width of the Mega Drive's 256; ares puts them 26 MCLK (3.25 of the 32X's pixels) to the right; PicoDrive's and BlastEm's frames put the 32X's picture 3 to 4 of its pixels right of the Mega Drive's left edge (OBSERVED, validation.md "Milestone 4"). The other reading: EDCLK follows the dot clock, MCLK/10 in H32, so the 320 pixels would span 3,200 MCLK; but then the 32X's 420-dot line (4,200 MCLK) could not fit a 3,420-MCLK line. The service manual shows EDCLK reaching the VDP and not its rate. The board takes the first reading (`edclk_h32`, now 368 MCLK, derived) and ares's 26 MCLK (`composite_alignment`; 30 before 2026-11-19), both **provisional**: Session 9 had settled them from Nuked-MD's source and a probe built on it, which is no longer evidence (scrub of 2026-11-19). No capture. - **Screen shift with a line-table entry whose low byte is `$FF`** is ignored (Bulletin #14). Specification. - **Screen shift in direct-colour and run-length modes**: ares shifts only packed pixel; the Manual describes SFT without naming a mode and explains it for packed pixel. The board now follows ares (packed pixel only, `screen_shift_modes`, changed 2026-11-19); the earlier choice (all three modes) rested on a reading of closed sources and is struck: **provisional**. - **VBLANK position**: Manual 27 dots after HBLANK on the last line; testpico's `irq vint` passes on the board with 27. - **Where the 32X's line sits against the Mega Drive's**: the Manual does not place HBLANK in the Mega Drive's line, but its four spans from HBLANK given in both dots and MCLK (3 = 24, 27 = 224, 76 = 668, 100 = 860) fit megadrive-python's measured H40 dot clock at exactly one place: 12 dots before the Mega Drive's HBlank flag (H $15A, external $AD; [timing.md](timing.md)). No capture places it. - **H count register reads**: Near (ares) returns the set value, not the live counter, to avoid a Virtua Fighter lockup (t=3218). Emulator-derived. - **HCOUNT semantics**: 0 = every line, 5 = every sixth (TascoDLX, t=3218; Mars Check Program HINT tests). Specification + research. - **FEN during refresh**: Metal Head polls FEN, so the DRAM refresh's FEN pulse must exist (srg320, t=3218); the Manual: "When the DRAM is being refreshed FEN is 1, but access of the DRAM is possible". 40 SH-2 clocks per line (Manual). Figure 3.17 also draws narrower FEN pulses through the line, of no stated width. Only the 40-Sclk one is modelled. - **Auto fill and SH-2 DRAM access**: SH-2s "cannot access DRAM while the auto fill is executing" (32XDK wiki, Video); what happens if one does (wait or corruption): unknown. - **Palette access when PEN falls**: "when PEN goes from 1 to 0, the written value is not guaranteed"; access must finish 1 us before (Manual 5.3, point 5). Undefined; model as a wait and label. - **Colours**: emulators differ (t=1160, "Notice on differences between emulator colors for 32x"); the 32X's RAMDAC levels against the Mega Drive's DAC levels on the same screen have no measurement. Open. ## The cartridge - **NFL Quarterback Club's serial EEPROM.** The header says `RA` `$E8 $40`, $200000-$200001; MAME's 32X software list names no board. The game tests the chip at start ($05AEC6: /SDA written 1 must read 1, written 0 must read 0) and without that fills the screen with stripes and stops at $05AF06. `Quirks.cartridge_boards` takes the 32X serials T-8102B and T-8104B (NBA Jam TE) to megadrive-python's Acclaim 24C02 board, with two changes to the pinned `Cartridge`, kept in `console.AcclaimEEPROMCartridge`: /SDA reads the line, not just the chip's drive, and a word write to $200000 selects ROM or EEPROM. The sources first named for these (a jgenesis table and Genesis Plus GX's Acclaim mapper) are closed and struck (2026-11-19); what remains is the header's `RA` field and the game's own test passing on the board. **Provisional** until megadrive-python's audited Acclaim board or a cartridge document is cited. ## PWM - **Period**: Manual "set value x Scyc"; ares `cycle - 1`; run here, PicoDrive's tones fit `cycle - 1` and BlastEm's `cycle - 2` (OBSERVED, below). Contested; nothing here times finer than a frame. - **Cycle = 1** stops the PWM (ares, citing "PWM will no longer operate"). Emulator. - **FIFO**: 3 deep per channel; full write drops the oldest; with one channel routed off its FIFO still drains silently (Manual 3.2.1 note). With both channels off the counter stops and FULL stays set (the same note). What an empty FIFO plays is not documented; the board keeps the last word playing (**provisional**). - **Routing**: the Manual's table read as the output each field drives (LMD 2: the left output plays the R channel); the Mars Check Program's pan tests only pan under that reading. What the prohibited 3 does: not documented. - **DREQ1**: "ROM to PWM transfer cycle" every TM periods (Manual 3.2.1), an edge-triggered request on channel 1 (chapter 5's CHCR1). How long the 32X holds it, and whether it goes to both SH-2s: not documented (ares raises it on both). - **Byte writes to a width register**: when the entry is queued is not documented (ares on the odd byte; run here, PicoDrive plays the Mars Check Program's Z80 byte-pair tones cleanly and BlastEm turns them to noise, as if it queued on each byte: OBSERVED). - **Output stage and level** against the Mega Drive's FM and PSG: no recording. The board's gain for PWM in `AudioPath.mix` is an **assumption**, labelled, until one exists (expansion-sockets.md, socket 8); so is the level's shape (the duty cycle, unipolar, nothing of IC11's own filter). ## Reset - The 68000 resets the SH-2s through RES and REN in `$A15100`; the reset button raises VRES on both SH-2s; what the reset button does to ADEN, FM, RV and the bank register: testpico's `t_32x_reset_btn` and `t_32x_reset_prep` test it on hardware (the first is run before everything else, and the reset-prep test must be last). Hardware-corrected once the build reads testpico's source for the expected values. - The power-on value of `$A15100`: testpico `t_32x_init`, with ADEN still 0, waits for REN (bit 7) and then expects `$82`, REN and RES set (`main.c` lines 1947-1952; notaz's comment there: REN "seems to be sometimes clear after reset"). Hardware-corrected. ## Known-wrong or superseded sources - **Gens 2.x** (the TAS project's copy is pinned): historically the reference others copied; runs code that crashes on hardware (unaligned SH-2 accesses, spritesmind t=2732). Detector at best. - **MAME 0.285 `mega32x.cpp`**: sparse by its own comments; runs testpico into an illegal-instruction exception in the Mega Drive timing tests, before any 32X test ([mame-oracle.md](mame-oracle.md)). - **The 32XDK markdown transcription** of the Manual garbles at least two tables (the bitmap mode register's bit positions, the VBlank periods): cite the scan. - **Early Fusion and Gens builds** pass ROMs that fail on hardware (t=2732): a game running on an emulator says nothing. ## Open items (no pinned source settles them) 1. The composite rule, per pixel: the form is the Manual's; what "transparent" means (YS, colour 0, or the backdrop's index) and S/H remain open. 2. What the 68000 reads at `$000100-$3FFFFF` with ADEN = 1 and RV = 0. 3. Whether the Mega Drive VDP can DMA from `$840000-$9FFFFF` (frame buffer, cartridge windows) and what it reads at `$000000-$3FFFFF` with RV = 0. The Manual only names RV as "ROM to VRAM DMA": games set RV = 1 to DMA from the cartridge. 4. H32 with the 32X displaying. Session 9 had narrowed it from Nuked-MD's source; that is struck (2026-11-19), so it is open again: whether EDCLK keeps its H40 dots in H32 (the board assumes so, `Quirks.edclk_h32`), whether the 32X counts from HSYNC in H32 as in H40, the H32 VSYNC lines' EDCLK, and the picture's place (the board and ares 26 MCLK, BlastEm's frames about 30: provisional). 5. PWM period (`cycle`, `cycle - 1` or BlastEm's observed `cycle - 2`), the output level and gain, DREQ1's length, the prohibited routing 3 (milestone 5 chose; below). 6. VBLANK's position (the Manual's 27 dots after HBLANK; no hardware source). 7. The `$x070` mirrors under RV = 1. 8. The SH-2 revisions in each 32X revision. 9. ~~The Manual's blank-period table~~ **settled 2026-10-29** from the scan (PDF page 56, figure 3.16): 38, 89 and 73 lines (NTSC, PAL 224, PAL 240); the transcription's "38h" is "38H", H meaning lines. 10. Where the 68000 goes on the reset button with ADEN = 1 and RV = 1. The vector ROM's reset vector is `$880200`, a window that hangs with RV = 1 (testpico t_32x_md_rom), yet testpico's `sega_gcc.s` fills `$2C8-$304` of its cartridge with `illegal` under "mystery landing area for reset with 32X on and RV=1 / 2c8 - 304 in multiples of 4": notaz observed the landing within that range, exact address unknown; testpico clears RV before it asks for the button. The board's stop there is a **placeholder**, not a hardware claim (below). Run at milestone 2 (2026-10-25): the board, pressing the button during testpico's 32X tests with ADEN = 1 and RV = 1, stops at the placeholder (the vector ROM's $880200); BlastEm, reset while hung in `32x init`, restarts testpico normally, but nothing shows RV was 1 at its press. **No evidence for a specific landing; the placeholder stays.** 11. What a console with a 32X attached does on a 68000 access to `$800000-$9FFFFF` while ADEN = 0 (below). 12. **The copy loops' missing time** (Session 8, 2026-11-05; [validation.md](validation.md), "The ROM-VRAM copy, investigated"): on the 32xspd photograph an iteration of 8 frame-buffer word writes and one line fill costs about 9 states more than the board's 91 (cartridge fill), and about 5 more than the FIFO-bound 40 the board's rules give with the documents' SDRAM fill. Alternating frame-buffer writes with reads elsewhere costs something no document states. Ruled out: the VDP's display fetches (the draw and display buffers are separate DRAMs, Manual 1.1; the pure write loop fits). Each serialising rule tried (the fill waits for the FIFO to empty; the drain stops during the fill; every write after a fill costs the full 5) overshoots both loops by about 5; only a fitted per-iteration constant (7-8) fits both, and it is not taken. HM 7.9's write-after-read idle cycle is hidden by the loop's existing 1-state gap; the core's missing SDRAM refresh (HM 7.2.5-7.2.7) accounts for about 1. **Open; the board keeps the FIFO draining independently of other cycles.** ## What the board chose (milestone 1, 2026-10-23; revised 2026-10-24) Every choice is a field of `sega32x_python.machine.Quirks`, and a test in `tests/test_slot.py` or `tests/test_testpico.py`. By the rule in [validation.md](validation.md) ("Three records, kept apart"), each entry below states what the documents say, what hardware testing shows, and what the board implements, separately; where they disagree, the disagreement is kept. - **The vector ROM stays at `$000000-$0000FF` with RV = 1.** Documents: Manual 3.1 assigns the vector area to the built-in ROM and only `$100-$3FFFFF` to the cartridge under RV = 1. Hardware: testpico t_32x_md_rom, run with RV = 1, reads the boot ROM's `$880200` at `$000004` and the cartridge's "SEGA" at `$000100`. Board: as both. Bulletin #9's "68000 interrupts off while RV = 1" follows: the vectors point into `$88xxxx`, which hangs with RV = 1. - **`$880000-$9FFFFF` with RV = 1.** Documents: Manual 3.1 maps the cartridge there only with RV = 0. Hardware: testpico t_32x_md_rom, "with RV 0x880000/0x900000 hangs". Board: lock-up. - **`$000100-$3FFFFF` with ADEN = 1 and RV = 0** (`low_map_without_rv`, open item 2). Known (documents): no cartridge is mapped there (Manual 3.1). Hardware: nothing tested. Chosen (board): CMD `gen-hw.txt` note 1's open bus as megadrive-python defines it -- a word reads the next opcode's MSB with LSB 0; a byte reads that MSB at an even address and 0 at an odd one; writes do nothing. Unresolved: what the hardware drives. ares returns the bus (as the board does). - **A 68000 access while the SH-2 side owns the VDP (FM = 1)** to the frame buffer and overwrite image, the VDP registers or the palette (`vdp_side_with_fm`). Documents: Manual 3.1, "reads are undefined and writes are ignored". Hardware: no hardware-corrected program tests it. testpico t_32x_irq_cmd's `write8(r, 0x00); // FM=0 (hangs without)` (main.c:2185) is kept as an **unexplained observation**: it sits in the CMD-interrupt test and is followed by system-register reads, not frame-buffer accesses, so it says the test hangs without that write, not that a 68000 frame-buffer access hangs; nothing is generalised from it. Board: the Manual, for all three blocks -- writes dropped, reads return the board's open bus (the value is chosen: the Manual leaves it undefined); no hang. (Until 2026-10-24 the board locked up here, generalising from that comment.) - **The VDP registers and palette with ADEN = 0.** Hardware: testpico t_32x_init, `// expect(ok, r8 [0x81], 0); // VDP; hangs without ADEN`, a comment on the very read. Board: lock-up. - **`$800000-$9FFFFF` reads and writes, two states** (`area_without_aden`, open item 11). No 32X at all: CMD `gen-hw.txt` note 2, "Reading or writing any address will lock up the machine. This area is used for the 32X adapter." (research tier) -- megadrive-python's existing lock-up. A 32X attached with ADEN = 0: no document and no test; the board claims nothing there, so it **inherits** megadrive-python's lock-up, unverified. Cartridges that reach it in megadrive-python's mini sweep: Devi to Pii (Japan) (Mega Drive Mini 2) at `$9FFFFE`, The Killing Game Show (Japan) (En) at `$800000`. - **The reset button with ADEN = 1 and RV = 1** (`reset_with_rv`, open item 10). Documents: none. Hardware: testpico's landing area (`$2C8-$304`, exact address unknown). Board: a **placeholder** stop, `ResetLanding` (a `Lockup`) at the reset vector's `$880200`, explicitly not a hardware claim; it lives in one method, `Sega32X._reset_landing`, so a finding replaces it without rewriting the reset path. - **Writable bits** (testpico t_32x_init, t_32x_reg_w): `$A15100` FM/RES/ADEN with REN reading 1 (the Manual calls REN R/W); `$A15106` bits 0-2 (the Manual draws bit 1 as a fixed 0); SEGA TV bits 0 and 8 (the Manual names bit 0 only); DREQ source 24 bits with bit 0 clear, destination 24 bits, length with bits 1-0 clear and `$FFFF` after a cold power-on; `$A15114-$A15119`, `$A1511C-$A1511F` and the FIFO read 0. Where the Manual and testpico differ, the board follows testpico and the Manual's reading stays in the quirk. - **The reset button leaves the 68000-side registers** (testpico t_32x_reset_btn). ## What the board chose for the SH-2 side (milestone 2, 2026-10-25) Every entry is a `Quirks` field in `sega32x_python/machine.py` with `documents`, `hardware` and `unresolved` kept apart from what the board does; the short list: - **The SH-2s run only with ADEN = 1 and RES = 1** (`sh2_clock_needs_aden`): the service manual's "CPU clock runs only when ... the MARS bit is set" against testpico's comment that they "should see no ADEN and sleep". Unresolved. - **INTM/INTS are read/write and CMD follows them** (`cmd_interrupt`): the Mars Check Program's test 3 reads back what it wrote, against the Manual's "0: NO OPERATION". - **VINT is asserted for VBlank on both CPUs whatever their masks**, cleared by the CPU's clear or by VBlank's end (`vint_latch`): the board's inference from testpico `t_32x_irq_vint` (2025), which both referees fail; HINT and PWM latch where enabled. - **FTOA drives /IRL0 directly** (`ftoa_to_irl0`), so a CPU with SR mask 0 is interrupted at level 1 continuously, as Morita's FAQ and testpico's "0 causes endless irq" say. Milestone 6 (2026-11-25): 19 early programs stall on the board for this reason and run on PicoDrive and BlastEm (the Gnu Sierra sample, Golf Magazine betas 2-10, Motocross Championship betas 1-7, Doom betas 2 and 4; `tests/sweep_triage.txt`, worklog Session 19); their later builds write the FRT first (Technical Bulletin #10). Whether they stall on a production console is unverified (HYPOTHESIS), as is FTOA's level out of reset. - **The SH-2 view of $20004006** carries bits 2-0 as written, bit 1 included (Mars Check tests 43-44) where the Manual draws a fixed 0; FULL/EMPTY of the frame buffer's write FIFO read empty (`sh2_dreq_view`; modelled from milestone 5b, below). - **PWM** is registers with FIFOs that drain one word a period and a timer interrupt (`pwm_registers`, `pwm_period`: `cycle - 1`, contested); no sound until milestone 5. - **Waits and arbitration** are the Manual's low ends and a first-come shared bus (`sh2_waits`, `m68k_waits`, `sh2_bus_arbitration`; revised at milestone 5b, below); **RV stalls** make the access at once and hold the chip until a catch-up finds RV = 0 (`rv_stall`). - **The DREQ FIFO** (`dreq_fifo`) and **the SCI link** (`sci_link`) are first models; the 32X VDP was registers only (`vdpregs.py`, `bitmap_bits`, `fill_at_once`), replaced at milestone 3 (below). - **An SH-2 access to the VDP side with FM = 0** reads 0 and drops the write (Manual 3.1), where Manual 3.4 says the SH-2 waits for FM (`sh2_vdp_without_fm`); the two accounts disagree and stay listed. ## What the board chose for the SH-2 bus (milestone 5b, 2026-11-04) Every entry a `Quirks` field with its three records and a test in `tests/test_bus.py`. The costs rest on documents (the Manual 3.1, 3.4, 4.1; HM 7.2-7.5, 7.10); the only hardware result is the 32xspd photograph, research tier ([validation.md](validation.md), "Milestone 5b"). No 32X is measured here, and none will be (decision 6). - **The Manual's waits are the cycle's, not added to WCR's** (`sh2_wait_overlap`, `sh2_waits`): "1 Wait means ... the minimum bus cycle + 1 Clock" (Manual 4.1), and WAIT is sampled only at the end of the last programmed Tw (HM 7.4.2), so the boot ROMs' one programmed wait per area (WCR $0055, the least that enables WAIT) is part of every range. Milestones 2-5 added the whole range on top: one state too many on each cycle. - **CS0 is 16 bits** (`sh2_area0_width`): the MD4/MD3 pins are not in Sega's documents; the registers are word-wide. The width's earlier basis (the MiSTer core's pin ties, read from its source) is struck (2026-11-19): **provisional**, unresolved. - **The frame buffer's write FIFO** (`sh2_framebuffer_fifo`): 4 words draining one per 5 clocks, the only rate that gives the Manual's "3 clocks, 5 when full"; FULL/EMPTY at `$20004006` from it (`sh2_dreq_view`). **Open:** whether a read waits for the whole FIFO (the board: only for the word leaving; four words would exceed the Manual's 12), whether a read sees a queued word (the board writes the DRAM at once), auto fill against it, and what costs the copy loops their missing time (open item 12; the VDP's display fetches are ruled out there: they read the other DRAM). Sega's *32X H/W Information* (Target Ver. 2.0: writes 3, 3, 3, 3, then 5) agrees with the FIFO's shape. - **Arbitration** (`sh2_bus_arbitration`): HM 7.10's slave asks for the bus each access and releases it after; a line fill and an access's port cycles are never split; costs 2 (slave request) and 1 (master return) from HM's clock edges and the 32XDK wiki's "2-3 clock cycles" per handoff. **Open:** the costs; the order within one instruction (the chips run an instruction at a time, so the one run first wins a near tie). - **The cartridge** (`cartridge_contention`): Manual 3.4's "the second CPU to be accessed waits until access of the first CPU is finished", both ways; the 68000 held through `Board.hold`. **Open:** a tie (the board's run order decides it). - **SDRAM** (`sh2_sdram`): the core's ordinary cycle, 3 states a word, because WAIT does not reach synchronous DRAM (HM 7.2.3) and sh2-python at d55bbb0 does not shape SDRAM cycles. By HM 7.5 with the boot ROMs' MCR a line burst is 10-12 states (24 here), a cache-through read the same whole burst (3 or 6 here), a write 1-3 (3 here); the Manual's fixed 12 and 2 are the slow ends. A core change, written as [sh2-python-sdram-pr.md](sh2-python-sdram-pr.md); no refresh cycles either. The refresh the boot ROMs program (RTCSR $08, RTCOR $59: one every 356 states, as [sh2-python-sdram-pr.md](sh2-python-sdram-pr.md) counts, holding the bus 2-7) is the right size for the 1-3 % the board's cartridge loops run fast against the 32xspd photograph (Session 8). ## What the board chose for PWM (milestone 5, 2026-11-04) `src/sega32x_python/pwm.py`; every entry a `Quirks` field with its three records, and a test in `tests/test_pwm.py`. **Detectors only** for what leaves the console ([claims.md](claims.md)). - **Period** (`pwm_period`): `(cycle - 1) & $FFF` SH-2 states; cycle 1 stops the counter, 0 gives 4,095. The Manual's section 3.4 states it (page 55, OCR'd 2026-11-19); ares and PicoDrive's tones (OBSERVED) agree; BlastEm's observed tones are `cycle - 2`. - **The FIFOs** (`pwm_fifo`, `pwm_registers`, `pwm_byte_writes`): three deep, the oldest dropped when full; an empty FIFO holds the last width (Manual 3.4). Since the wave-2 rewrite (2026-11-19) a word pops at the start of a period, as ares does (OBSERVED, **provisional**; MAME pops at the end); before it the board popped at the end, a choice whose only basis was closed sources. A byte write to the even byte is held; the odd byte queues (ares). - **Routing** (`pwm_routing`): LMD 1 L, 2 R; RMD 1 R, 2 L; 0 and 3 silent; either field non-zero runs the counter. - **Timer** (`pwm_timer_restart`, `pwm_cycle_write`): the PWM interrupt every TM periods (0: 16), on the SH-2s whose mask enables it; only an SH-2 write of the TM byte restarts the count (ares, OBSERVED, **provisional**; changed 2026-11-19 from "any control write", which came from a closed source); a cycle write keeps the period under way (ares). - **DREQ1** (`pwm_dreq1`): with RTP, at each timer event, raised on both SH-2s' DMACs (Sega's System Overview p.33, "DMA can set both master and slave"; Manual 3.4: the interrupt is "the same signal as a transfer request (DREQ1)"); one step per event and the drop on an SH-2 write of RTP = 0 follow ares (OBSERVED, **provisional**). - **ADEN** (`pwm_needs_aden`): the counter stops with ADEN = 0 (an assumption from the block diagram's gated clock), so a passive 32X makes no sound. - **Level** (`pwm_output_level`, `pwm_gain`): the duty cycle of width - 1 (Manual 3.4: "set value - 1 is the height", so 1 gives 0 and 0 gives 4,095), min((w - 1) & $FFF, period) / period, 0.0-1.0, unipolar, 0 when off or stopped (changed 2026-11-19 from min(width, period) / period); added by socket 8 after the Mega Drive's low-pass and before its coupling capacitor, gain 6,100 FM units per full swing. Both assumptions. ## What the board chose for the composite (milestone 4, 2026-10-30) `src/sega32x_python/composite.py`; every entry a `Quirks` field with its three records, and a test in `tests/test_composite.py`. **Detectors only** ([claims.md](claims.md)). - **The rule** (`composite_rule`). Documents: Manual 3.3, figure 3.9; service manual `A406a`, "switches between input via 'YS' signal to produce one output". Hardware: nothing. Board: the 32X's pixel where its row is not blank and (through bit XOR PRI, or the Mega Drive transparent); else the Mega Drive's. Unresolved: "transparent" (next). - **Transparent** (`composite_md_transparent`). Documents: "MD color code is 0" (Manual), -MYS (service manual), "no BG or sprite pixel" (TmEE). Hardware: nothing. Board: YS as socket 7 gives it. Detectors: ares the same (backdrop flag); PicoDrive's and BlastEm's frames do not separate the readings on any screen run here (OBSERVED, validation.md "Milestone 4"). - **YS under shadow/highlight** (`composite_ys_shadow`). Unknown; the shade is not looked at (ares the same). Socket 7 carries the shade, so a finding changes one line. - **Alignment** (`composite_alignment`, `composite_dot`, `composite_border`). H40: one on one: Sega's *32X H/W Information* (item 4) gives production units within half a dot. (A Nuked-MD figure that also backed it, and the test that checks the board's line against that figure, rest on reading Nuked-MD's source and are struck as evidence, 2026-11-19.) Milestone 4's "40 MCLK right" compared the 32X's display with megadrive-python's `display_at + output_delay`, which is where a CRAM write shows, not where pixel 0 leaves the RGB pins: not a disagreement. H32: 8-MCLK 32X dots, 26 MCLK right (**provisional**: ares's figure; BlastEm's frames about 30, OBSERVED; the earlier 30's derivation is struck), each 32X pixel taking the Mega Drive pixel under its centre; a 32X pixel past the Mega Drive's right edge sees YS. Lines come out 320 wide, 324 in H32. The 32X's RAMDAC delay is taken as none, and XHDISP (figure 3.15, 3 dots after HBLANK both ways) is not modelled: taken as the display window, the 32X would sit 3 dots right of where the board puts it, outside the half dot. - **Colour** (`composite_levels`). Each DAC at its own full scale; no measurement. ## What the board chose for the 32X VDP (milestone 3, 2026-10-29) `src/sega32x_python/vdp.py`; every entry a `Quirks` field with its three records, and a test in `tests/test_vdp.py`: - **The line's place** (`hblank_phase`): HBLANK rises 12 dots before the Mega Drive's HBlank flag (H40 H $15A), the one place where the Manual's dot spans come out in its own MCLK figures. The rest of the line follows the Manual in dots (`hblank_timing`): PEN 3 dots after HBLANK and falling with it, the register latch at 76, HBLANK's fall and the row's display at 100; VBLANK's edges 27 dots after HBLANK (`vblank_after_hblank`, the Manual). In H32 the dots are taken as EDCLK's keeping H40's (`edclk_h32`, a provisional hypothesis since its Session 9 basis was struck): HBLANK 23 of them before HSYNC, 190 MCLK into the H32 line. - **Rows** count from the Mega Drive's V counter: 224, or 240 with the 240 bit on PAL. The HBLANK before row n lies in the Mega Drive line whose V counter is n. - **HINT** (`hint_counter`): fires at HBLANK when the internal counter is 0, reloaded from the H count register when that HBLANK falls, counting down otherwise; in VBLANK only with HEN, and without HEN the counter is reloaded at each fall (unresolved: no document says). - **VINT** at VBLANK's rise, taken away at its fall (`vint_at`, `vint_latch`). - **FEN** (`fen_refresh`, `auto_fill`): 40 Sclk from each HBLANK, and during an auto fill, 7 + 3 x words Sclk (the cycle read as Sclk); the fill's words are written at once and a CPU access meanwhile is not held. Undocumented either way. - **The palette** (`palette_wait`): an access while PEN = 0 is held until PEN = 1, as the Manual says; PEN follows the latched mode. No detector holds; none is a judge here. - **FS** (`fs_swap`): at once in VBLANK or with the mode register (as written) blank, else at VBLANK, or at a latch that finds blank mode. The Manual gives the swap at VBlank; the blank-mode cases were taken from closed sources and are struck as evidence: **provisional**. - **The picture**: the three modes, the line table, the word address wrapping through the DRAM (the Manual's "runs into the overwrite image"), the shift in all three modes (`screen_shift_modes`, provisional: see above) with Bulletin #14's `$FF` exception; a blank-mode row is transparent (`blank_row`), black in the 32X-only PNG; RGB888 as `v << 3 | v >> 2` (`rgb_levels`, an assumption). - **The bitmap mode register** (`bitmap_bits`): PRI at bit 7, 240 at bit 6, read off the Manual's scan (PDF page 36); the transcription's table was the garbled one. Reads return what was written; the display uses the latched copy.