# Quirks, revisions, contradictions, open items Tags as in [start-here.md](start-here.md). A quirk listed here is something the board must reproduce; each names the source that states it and the oracle that would judge it. ## Quirks the board must have | # | Quirk | Source | Judge | | --- | --- | --- | --- | | Q1 | Reads of `$4000-$43FF` do not update the CPU's MDR (open bus) | fullsnes; ares 9408cb4 (ISC) `sfc/cpu/memory.cpp` `read()` [doc, emu] | blargg `exec_io_tests` (execute from I/O) [probe] | | Q2 | Two PPU open-bus latches: unused bits of PPU1 reads return PPU1's last read value, PPU2's return PPU2's; write-only registers return the CPU MDR | fullsnes l.1357-1397 [doc] | none pinned (U2) | | Q3 | `$213C/$213D` are read-twice (low 8, then bit 8 with 7 bits of PPU2 open bus); the flip-flop resets on a `$213F` read | anomie regs; fullsnes [doc] | krom none; Mesen2 and bsnes agree (closed-box runs) [emu] | | Q4 | WRIO bit 7 1-to-0 latches H/V one dot later than a `$2137` read | anomie timing l.19-22 [doc] | U5 | | Q5 | Mul/div advance one step per CPU cycle (and per 8 clocks of refresh); early reads see partial results; restart while busy is ignored (ares) | ares 9408cb4 (ISC) `sfc/cpu/timing.cpp` `aluEdge()`, `io.cpp` `writeCPU()` [emu]; fullsnes "wait 8/16 clk cycles" [doc] | undisbeliever `wrmpyb-in-flight` [probe]; U4 | | Q6 | Division by zero: quotient `$FFFF`, remainder = dividend; WRMPYB also sets RDDIV = WRMPYB, `$00` high | fullsnes l.2811-2825 [doc] | probe to write (U4) | | Q7 | DMA: 8-clock divider; start/end alignment; one byte per 8 clocks; HDMA preempts; pattern 5-7 repeats; count 0 = 65536 | anomie timing "DMA"; fullsnes [doc] | SnesSpeedTest [probe]; Mesen2 vs bsnes, closed-box runs [emu] | | Q8 | HDMA init at V=0 (CPU-version-dependent position), per-line run at dot 278, overheads 18 + 8/channel + 16 per indirect fetch | anomie timing "HDMA"; ares 9408cb4 (ISC) `sfc/cpu/timing.cpp` `scanline()` [doc, emu] | krom HDMA demos (pictures tier 3); undisbeliever `hdma-timing-demonstration` [probe] | | Q9 | CPU **version 2** ("S-CPU-A") DMA failure after an HDMA to or from `$2100` on the previous line: the DMA does nothing and DASn keeps its count; CPU **version 1** instead "can crash" when a DMA ends right before HDMA (`wiki/Errata`). **Console (version 1, 2026-10-25, probe suite CRSH, DEND):** no crash in 96 attempts; the line's HDMA is lost when the DMA ends 2-3 bytes before it, and the frame's HDMA init is lost on its last byte [hw] | `wiki/Errata` l.96-97; undisbeliever `scpu-a-dma-bug/dma-test.inc`, `quick-model-1-dma-crash/` headers [doc, probe]; probe suite [hw] | a version-2 console for the failure | | Q10 | INIDISP early-read glitch: writing `$2100` can glitch the PPU's view of OAM/brightness on some PPU2 revisions | undisbeliever `inidisp-early-read-glitch/` [probe] | console runs per revision (U1) | | Q11 | DRAM refresh: 40 clocks at ~536-538 per line, CPU-version dependent; ALU steps during it | anomie timing l.68-72; ares 9408cb4 (ISC) `sfc/cpu/timing.cpp` `step()`, `scanline()` [doc, emu] | IRQ/H-counter probes | | Q12 | IRQ: `14 + 4H` clocks after dot 0, H=0 → 1374 after previous line's dot 0; anomie also says no IRQ at dot 153 of the short line or the last line of a frame, but **the console fires there**: 4 IRQs in 4 frames at (240, 153) and (261, 153) (probe suite IRQN, 2026-10-25) [hw] | anomie timing l.113-122 [doc]; probe suite [hw] | Near's tests (unavailable) | | Q13 | NMI: falls at H=0.5 of the first VBlank line; `$4210` read clears; DMA-delayed NMI 24-30 clocks after DMA | anomie timing "Interrupts" [doc] | | | Q14 | Auto-joypad: start window dots 32.5-95.5 of first VBlank line on a 256-clock grid, 4224 clocks, JOYx unreliable during it | anomie timing "Auto Joypad Read" [doc]; ares 9408cb4 (ISC) `sfc/cpu/timing.cpp` `joypadEdge()` [emu] | undisbeliever `auto-joypad/` (14) [probe] | | Q15 | OAM: the address reloads from OAMADD at VBlank start if not force-blanked; writes during rendering go where the PPU is reading; the high-table/low-table write latch | fullsnes "OAM"; `wiki/OAM` [doc] | U2 | | Q16 | CGRAM writes during rendering land at the PPU's current address | fullsnes; `wiki/Errata` [doc] | U2 | | Q17 | Sprite range over (33rd sprite on a line) and time over (35th 8x1 sliver) set `$213E` bits 6/7; evaluation order from OAM priority rotation | fullsnes; `wiki/Sprites` [doc] | undisbeliever `object-dropout-test` [probe] | | Q18 | Mode 7: 13-bit signed scroll/centre, matrix products truncated per the PPU's own multipliers; `$2134` is the signed 16x8 product of M7A and the last M7B byte | `wiki/Mode 7 transform`; fullsnes [doc] | krom `PPU/Mode7/*` (pictures tier 3) | | Q19 | `$2180` WMDATA: no prefetch; WRAM-to-WRAM DMA "isn't possible" | fullsnes l.393-410 [doc] | U3 | | Q20 | S-SMP timer counters cleared on read; TEST (`$F0`) changes wait states and timer clock; IPL ROM disable via `$F1` bit 7 | fullsnes; blargg `notes.txt` [doc, hw-observed] | blargg `test_timer_*`, `test_ram_disable_ipl` [probe] | | Q21 | Power-on: WRAM, VRAM, OAM, CGRAM, ARAM not zero; some games depend on it | fullsnes; blargg `wram.zip` dumps [hw-observed, UNVERIFIED unit] | `wiki/Tricky-to-emulate games` | | Q22 | Short line (1360) and long line (1368); 263-line interlaced even fields | anomie timing l.62-66; `wiki/Timing` [doc] | MAME does not model it (measured) | ## Revisions as data | Field | Values | Known differences | Sources | | --- | --- | --- | --- | | `cpu_version` | 1, 2 (`$4210` low nibble) | refresh at 530 vs 538; HDMA init position; DMA bug Q9 | fullsnes l.1450; ares 9408cb4 (ISC) `sfc/cpu/timing.cpp` `scanline()` | | `ppu1_version` | 1 | | fullsnes l.1388 | | `ppu2_version` | 1, 2, 3 | mid-frame INIDISP/brightness behaviour (Q10); reportedly mode 5/6 and colour-math edge cases (UNVERIFIED) | fullsnes l.1399; undisbeliever probes | | `one_chip` | bool | all three in one die (1CHIP-01..03); different INIDISP glitch behaviour, sharper video | undisbeliever; SNESdev forum (not pinned) | | `region` | ntsc, pal | clocks, line counts, long line, `$213F` bit 4 | `wiki/Timing` | ## Contradictions found while gathering **C1. Dot lengths.** anomie timing ("always 340 dots ... normally dots 323 and 327 are 6 master cycles instead of 4") and ares (ares 9408cb4 (ISC) `sfc/ppu/counter/inline.hpp` `hdot()`, dots 323/327 at 6) agree; the SNESdev wiki `Timing` says "Normal: 1364 clocks, 340 dots. 336 dots of 4-clocks, 4 dots of 5-clocks". Both sum to 1364. **Take anomie** (with ares agreeing); the wiki's version is unreferenced. A console probe that reads `$213C` around H=323 with a known CPU phase would settle it. **C2. Refresh position.** anomie: "begins at 538 cycles into the first scanline of the first frame, and thereafter some multiple of 8 ... closest to 536"; ares: 538 for CPU version 2, recomputed per line from the DMA divider's phase, and **530 for version 1** (ares 9408cb4 (ISC) `sfc/cpu/timing.cpp`); the wiki: "40 master clocks in the middle of each scanline". Compatible if anomie measured a version-2 console. Recorded as `cpu_version`-dependent; UNVERIFIED which version anomie had. **C3. Refresh shape.** ares models five 8-clock blocks (6+2) and its comment mentions a 5/3 split seen on a logic analyser; identical in total, different for anything sampling inside the pause. No capture is pinned, and a comment in an emulator is not a hardware source (docs/restart.md rule 7). **C4. Mul/div while busy.** ares ignores a new WRMPYB/WRDIVB while an operation is in progress (ares 9408cb4 (ISC) `sfc/cpu/io.cpp` `writeCPU()`); the SNESdev wiki CPU section links a forum thread "Writing $4203 twice too fast gives erroneous result (not emulated)"; undisbeliever's `wrmpyb-in-flight` exists to map it. So that model is known incomplete here. Open (U4). **C5. MAME's division by zero** gives remainder `$000C`; fullsnes says the dividend. MAME is a detector; the board follows fullsnes, pending a probe. **C6. S-SMP clock unit.** The SNESdev wiki: "SPC-700 processor: 1.024 MHz (/24)"; MAME 0.285 clocks the S-SMP device at 24.576 MHz / 12 = 2.048 MHz (`snes.cpp` l.1340). MAME counts half-cycles; not a disagreement about hardware, but its `totalcycles` for `:soundcpu` is in those units. **C7. What `$2180` DMA from WRAM does.** fullsnes says it "isn't possible"; ares marks the transfer invalid (ares 9408cb4 (ISC) `sfc/cpu/dma.cpp` `transfer()`): A-to-B, the B write is dropped; B-to-A, the B read returns `$00` and that `$00` is written to the A address. **The console differs on B-to-A** (U3, closed 2026-10-25 below). ## Open items - **U1. Console results for undisbeliever's and blargg's probes**, per CPU and PPU revision and 1CHIP. They are in SNESdev forum threads, not pinned. Pin the threads (as famicom-python pinned NESdev forum pages) and tabulate the stated results before milestone 2. - **U2. A PPU open-bus and mid-frame OAM/CGRAM probe** with a stated console result: none found. Candidate: write one (a probe ROM is in scope for this board) and ask Aubrey whether a console run is possible. - **U3. WRAM-to-WRAM DMA result** (C7). Closed 2026-10-25 on the console (probe suite WDMA) [hw]: A to B, the write is dropped and WMADD stays; B to A, the A-bus target gets the open-bus byte (the opcode fetched after `sta $420B`), and WMADD stays. - **U4. Mul/div latency, partial results, restart while busy** (C4): run undisbeliever's `wrmpyb-in-flight` on Mesen2 and bsnes (closed boxes), read the forum thread's console values. The probe suite's mul/div tests ran on the console 2026-10-25 (docs/probe-suite/timing-alu-ppu.md) [hw]. - **U5. WRIO latch vs `$2137` latch, one dot apart**: closed 2026-10-24 on the console: the WRIO latch reads one dot later (`$036` against `$037`) [hw]. - **U6. ExHiROM detection**: `count_carts.py` found 1 ExHiROM image in the licensed set (Tales of Phantasia and Daikaijuu Monogatari 2 are known ExHiROM; check whether the heuristic scored their `$FFC0` copy higher). - **U7. DSP-1 hardware vectors**: no capture of DSP-1 input/output pairs is pinned; the program ROM run on a uPD7725 core is the oracle, judged by games. - **U8. The S-SMP/CPU clock ratio** (measured on Aubrey's console, 2026-10-24: +2,700 to +2,990 ppm against nominal, steady to 5 ppm within a run [hw]) of a real console (the resonator runs ~0.25 % fast, `wiki/Timing`): a field, default nominal; a measured value would make audio-race games (`wiki/Tricky-to-emulate games`) reproducible.