# How the Super Nintendo works: a top-down guide Written 2026-11-25 for Aubrey, from the family's own specification repositories: the board **snes-python** (with the S-DSP inside it, staged in **s-dsp-python**), the CPU cores **65816-python** and **spc700-python**, and the coprocessor cores **upd7725-python** (DSP-1 to DSP-4), **gsu-python** (Super FX) and **hg51b-python** (Cx4). Every fact below names the file it comes from. **Evidence tags.** snes-python uses its own tags, which map onto the family's (snes-python `docs/start-here.md`): **[hw]** = MEASURED or TEST ROM (a real console produced it), **[doc]** = DOC (fullsnes, anomie, the SNESdev wiki: strong, but resting on experiments we cannot see), **[emu]** = OBSERVED (an emulator run as a closed box, or ares's ISC source). This guide uses the family's words: MEASURED, TEST ROM, DOC, OBSERVED, FITTED, HYPOTHESIS. Unlike the 32X, **there is real hardware here**: Aubrey's Super Famicom with a Super EverDrive X5. It has already run the family's own probe suite (status.md, "The probe suite against the console"), and five more probes wait in `/data/emu/PROBE-QUEUE.md`. --- ## 1. The machine in one picture The SNES is two computers in one box. A main computer draws the picture and runs the game. A sound computer, on its own clock, makes the music. They meet at four one-byte mailboxes (snes-python `docs/start-here.md`, "The machine in one paragraph"). ``` MASTER CLOCK 21.477272 MHz (NTSC) │ ▼ ┌──────────────────────────────────────┐ A bus: 24-bit address, 8-bit data │ S-CPU (Ricoh 5A22) │════════════════════╤════════════════════╗ │ 65C816 core (65816-python) │ │ ║ │ + DMA/HDMA x 8, multiplier/divider, │ S-WRAM 128 KB CARTRIDGE │ H/V IRQ + NMI timer, joypad read, │ │ ROM, SRAM, and maybe │ address decoder: 6/8/12 MCLK │ │ a coprocessor: └───────────────┬──────────────────────┘ │ DSP-n, SA-1, Super FX, │ B bus: 8-bit address $2100-$21FF │ Cx4, S-DD1, SPC7110 ... ┌───────────┼──────────────────────┬────────────────────┘ │ │ │ $2180-$2183 (WRAM port: DMA ROM -> WRAM) ┌───▼───────────▼────┐ $2140-$2143: FOUR PORTS (each direction its own latch) │ S-PPU1 + S-PPU2 │ │ │ VRAM 64 KB, OAM, │ ┌─────────────▼─────────────────────────────────────┐ │ CGRAM; dot by dot │ │ APU 24.576 MHz resonator (not the master clock) │ │ │ │ │ S-SMP: SPC700 core (spc700-python), 64-byte IPL │ └──────┼─────────────┘ │ ROM, 3 timers, ports 1.024 MHz │ ▼ │ S-DSP: 8 voices, BRR, echo; owns ARAM 64 KB │ video out │ one step per S-SMP clock ──► 32 kHz stereo│ └───────────────────────────────────────────────────┘ ``` The facts in the picture (start-here.md, "Clocks" and "The CPU side"; DOC unless noted): - **S-CPU** (the Ricoh 5A22): a WDC 65C816 core plus parts the board owns: the address decoder that sets each bus cycle's length, eight DMA (direct memory access) channels with HDMA (DMA once per line), an 8x8 multiplier and 16/8 divider, the H/V (horizontal and vertical) timer for IRQ and NMI interrupts, and the joypad auto-read. - **Two picture chips**, S-PPU1 and S-PPU2 (PPU = picture processing unit), share 64 KB of VRAM (video RAM) and hold OAM (sprite memory) and CGRAM (the palette). The CPU reaches them over the 8-bit **B bus**. - **S-WRAM**, 128 KB of work RAM, sits on both buses, so one DMA can copy cartridge ROM into WRAM. - **The APU** (audio processing unit) is the S-SMP (an SPC700 CPU with a 64-byte boot ROM, three timers and the four ports) and the S-DSP, which owns the 64 KB of audio RAM (ARAM) and makes 32 kHz stereo. **It runs from its own 24.576 MHz resonator.** - **The bus cycle's length depends on the address**: 8 master clocks for WRAM and slow ROM, 6 for the B bus, CPU registers and "FastROM" (when MEMSEL bit 0 is set), 12 for the old joypad ports (start-here.md, "Bus cycle length"; fullsnes, DOC). MAME's trace charges the same table (MEASURED here on MAME, 2026-10-21, so an OBSERVED fact). **Two clock domains.** The main side counts master clocks. The sound side counts its resonator, and the resonator is not a crystal: consoles run about 0.25 % fast (start-here.md; SNESdev wiki, DOC). On Aubrey's console it measured **+2,700 to +2,990 ppm** against nominal, steady within a run (`docs/undocumented-behavior.md`, U8; MEASURED). So the ratio between the two sides is a machine parameter, not a constant. --- ## 2. One frame's life An NTSC frame is 262 lines of 1,364 master clocks, 340 dots a line (one dot = 4 master clocks, except two 6-clock dots). One line in every other frame is 1,360 clocks (snes-python `docs/timing.md`, "The line, the dot, the frame"; anomie, DOC). A frame is about 357,368 master clocks, 60.0988 frames a second (start-here.md, "Clocks"). **Line 0** is drawn but never shown. At its start (about H = 6) HDMA initialises: each enabled channel loads its table address and first line count (timing.md, "HDMA"). **Lines 1-224: the picture.** On each line: 1. **The PPU draws dot by dot**, from about master clock 88 to 1112 of the line. Mid-line writes to scroll, mode, window, colour math and brightness take effect at the dot they land on. So the spec's PPU draws dot by dot from the start, as famicom-python and gameboy-python do (start-here.md, "Access rules"). 2. **The DRAM refresh.** About 536 clocks into the line, the S-CPU stops for **40 master clocks** to refresh WRAM. It is invisible except as time, but it shifts every later cycle of the line (timing.md, "The DRAM refresh pause"; anomie, DOC). MAME does not model it. Keep this one in mind: it decides a game in section 4. 3. **HDMA at dot 278.** For each active channel, after the current CPU cycle, one table step: a few bytes to PPU registers, so the next line can have a new scroll, colour or window (timing.md, "HDMA"). HDMA pauses a running DMA. 4. **HBlank** (the `$4212` flag) is set at H = 274 and cleared at H = 1 (timing.md; anomie, DOC). 5. **An H/V IRQ** fires if the line and dot match HTIME/VTIME (timing.md, "NMI and IRQ"). **Line 225: VBlank begins** (line 240 with overscan). - **NMI** goes low half a dot into the first VBlank line. `$4210` bit 7 shows it (timing.md). - **Joypad auto-read** starts between dots 32.5 and 95.5 of that line and takes 4,224 master clocks. JOY1-JOY4 are wrong if read during it (timing.md, "Auto-joypad read"; anomie, DOC). - **The game uploads.** VRAM, OAM and CGRAM "can be accessed only during V-Blank, or Forced Blank" (start-here.md; fullsnes, DOC), so the NMI handler DMAs new tiles, sprites and colours. General DMA moves one byte per 8 master clocks, halting the CPU between its bus cycles (timing.md, "DMA"). **All frame long, the sound side runs by itself.** The S-SMP runs its uploaded sound driver at 1.024 MHz. Every 32 S-SMP clocks the S-DSP finishes one stereo sample. The two sides meet only when the S-CPU touches `$2140-$2143` (timing.md, "Two clock domains"). **How the spec runs that frame** (snes-python `docs/domains.md`, "Order of record"). The S-CPU leads, one instruction at a time; the 65816 core calls the board once per bus cycle, idle cycles included. Inside each call the board runs pending DMA, advances master time (NMI and IRQ polls, the joypad unit, line wraps, the refresh, HDMA triggers), makes the access, then takes one multiplier/divider step. The PPU catches up lazily, before any PPU register access and at each line's end. The APU catches up only when the S-CPU touches a port, and at frame end. APU time is a `Fraction` of master time, so runs are deterministic. --- ## 3. Each part in turn ### The S-CPU core: the 65C816 (65816-python) **What it is for.** Game logic. The 65C816 is an 8/16-bit processor (65816-python `README.md`); the 5A22 drives a 24-bit address bus (start-here.md). **How the board talks to it.** One bus callback per CPU cycle, in chip order, and unlike 6502-python, internal cycles are callbacks too, each with its address and its VDA/VPA/VPB/MLB pins. The board needs them because the 5A22 times every cycle by what it is (65816-python `README.md`). The core is built on 6502-python's frame, pinned, never copied. **Evidence.** All 5,080,136 SingleStepTests cases agree on every cycle (264 excluded as decided), and krom's hardware-verified CPU tests pass (65816-python `README.md`). Through the board, gilyon's `cputest-full` (649 tests) passes (status.md, "Gates"). **Famous quirk.** Dummy accesses are real. A dummy read of `$2139`, `$4210` or `$4211` has side effects, so the core must report each one with its address and kind (timing.md, "The design"). ### The 5A22's own parts: DMA, multiplier, timers **How software talks to them.** Registers at `$4200-$421F` and `$4300-$437F` (start-here.md, "CPU registers the board owns"). **Famous quirks.** - **The multiplier and divider take time.** A multiply takes 8 steps and a divide 16, one per CPU cycle, so reading early returns a partial result. Division by zero gives quotient `$FFFF` and remainder = dividend (fullsnes, DOC); MAME returns remainder `$000C` and answers instantly, "a detector weakness" (start-here.md). Rewriting WRMPYB 7 cycles in gave `$0000` on the console, and nothing explains it yet (status.md, MREP; MEASURED). - **The IRQ exception that isn't.** anomie says no IRQ triggers for dot 153 on the short line or the frame's last line. **The console disagrees**: the probe suite saw 4 IRQs in 4 frames at (240, 153) and (261, 153) on Aubrey's Super Famicom (timing.md, "NMI and IRQ"; MEASURED, 2026-10-25). - **WRAM-to-WRAM DMA** cannot work, because the WRAM chip cannot do both at once. What happens instead was **closed on the console**: A-to-B, the write is dropped; B-to-A, the target gets the open-bus byte (undocumented-behavior.md, U3; MEASURED). - **Open bus.** Unmapped reads return the last value on the data bus. PPU1 and PPU2 each keep their own latch too: three open-bus values, not one (start-here.md, "Open bus per PPU"; fullsnes, DOC). ### The picture: S-PPU1 and S-PPU2 **What they are for.** Up to four background layers in modes 0-7, 128 sprites, windows, colour math between a main and a sub screen, mosaic, hi-res, interlace, and mode 7's rotated and scaled plane (start-here.md, "The PPU"). **How software talks to them.** Only through B-bus ports at `$2100-$213F`. VRAM, OAM and CGRAM have no CPU address at all (domains.md, "Memory map"). The output is up to 512 x 478 15-bit colours after brightness; colour conversion is the frontend's job. **Famous quirks** (start-here.md; `docs/ppu-status.md`): - **OAM writes during display** land at whatever address the PPU is using at that moment. The console's run showed writes landing near sprites 43-52 across line 100, which neither the board nor ares explains (PROBE-QUEUE.md #2). - **The first hi-res column (U9).** Is the first half-dot of a hi-res line drawn bright, dimmer, or not at all? The board follows ares (not drawn); krom's pictures show it drawn; Mesen2 draws it dimmer. Six of krom's PPU pictures turn on it (PROBE-QUEUE.md #3). - **The brightness curve (U10).** fullsnes and ares say colour x (N+1)/16, which the board does; Mesen2's frames fit floor(colour x N/15). In the full sweep, **339 of 4,089 games differ from Mesen2 at frame 300 by exactly one 5-bit step**, nearly all mid-fade. One photo decides the largest failure class of the sweep (status.md, "The full sweep"; PROBE-QUEUE.md #4). **Evidence.** krom's PPU pictures: 26 of 43 exact at 5 bits per channel (status.md, "Gates"); the rest are named in ppu-status.md. ### The sound CPU: the S-SMP (spc700-python plus the board's `smp` module) **What it is for.** It runs the game's uploaded sound driver and programs the S-DSP. **How software talks to it.** At reset the IPL ROM, 64 bytes of Nintendo code at `$FFC0`, waits for the S-CPU to upload a program through the ports (start-here.md, "The APU side"). The S-SMP's I/O page is `$F0-$FF`: TEST (`$F0`), CONTROL (`$F1`), the DSP address and data (`$F2/$F3`), the four ports (`$F4-$F7`), and three timers: T0 and T1 at 8 kHz, T2 at 64 kHz, each with a 4-bit counter cleared when read. The IPL ROM is the only Nintendo ROM inside the console: bring your own. **How the board talks to the core.** One callback per SPC700 cycle, dummy reads and internal cycles included: a dummy read of `$FD-$FF` clears a timer counter, and internal cycles take their own wait states when TEST slows the bus (spc700-python `README.md`). **Famous quirk: the TEST register** changes the wait states and the timer clock. blargg measured the resulting timer periods on hardware in 2010; the spec has his notes only, not a capture (timing.md, "Two clock domains"). Through the board, gilyon's `spctest` (557 tests), krom's 7 SPC700 tests and blargg's `spc_timer`, `spc_smp` and `spc_mem_access_times` all pass (status.md; TEST ROM). ### The sound generator: the S-DSP (in the board) **What it is for.** Eight voices of compressed samples (BRR, bit-rate reduction), Gaussian interpolation, ADSR (attack, decay, sustain, release) or GAIN envelopes, pitch modulation, noise, and an echo with an 8-tap FIR (finite impulse response) filter (s-dsp-python `README.md`). A BRR block is nine bytes: a header, then 16 four-bit samples (`docs/dsp/start-here.md`; anomie, DOC). **How software talks to it.** Only through `$F2` (address) and `$F3` (data) on the S-SMP side. Every S-SMP RAM access goes through the DSP, which makes two memory accesses of its own between each S-SMP access. The module runs one of 32 steps per S-SMP clock (snes-python `docs/dsp/start-here.md`, "Clocks"; anomie, DOC). It stays inside the board by Aubrey's decision of 2026-10-21, behind an import-boundary test (s-dsp-python `README.md`). **Famous quirks** (`docs/dsp/undocumented-behavior.md`): - **KON and KOFF are polled at 16 kHz**, every other sample (U13). This week the poll's pairing with the DSP's global counter was settled: spc_dsp6's `brr addr wrap-around` passes only with it (U22, settled in part 2026-11-23; TEST ROM). The poll's phase against the S-SMP timers stays open (HYPOTHESIS: the board's reset value). - **The echo buffer is ARAM**, and echo writes wrap past `$FFFF` into the zero page (U19). The echo can therefore overwrite any part of ARAM, the sound driver's code included. - **The Gaussian table's origin is undocumented** (U1). The module computes it from ares's formula and asserts its hash against the printed table. **Evidence.** blargg's spc_dsp6, 111 of 111 through the whole board (TEST ROM, run on consoles by its author). 38 game tracks from 19 games, 12.16 million samples, value-exact against snes_spc run as a closed box (OBSERVED) (`docs/dsp/status.md`). ### The cartridge and its coprocessors **What it is for.** The cartridge sees the whole A bus and part of the B bus, and may carry a chip of its own (start-here.md). **The numbers.** Plain LoROM/HiROM boards are **95.3 %** of the licensed library; SA-1 1.5 %, DSP-n 1.1 %, Super FX 1.0 %, Cx4 0.3 %, and the rest a handful each (`docs/cartridge.md`). The header census maps 2,852 of 2,854 plain boards right against MAME's software list (status.md). **The rule.** Coprocessors that are programmable processors get cores. Fixed-function chips (S-DD1, the SPC7110's decompressor, OBC1, S-RTC) are cartridge code in the board (cartridge.md). None is wired into the board yet (domains.md). | Chip | Core | What judges it | | --- | --- | --- | | DSP-1 to DSP-4, ST010/011 | **upd7725-python**: NEC uPD7725 / uPD96050 | NEC's data sheets, the programs' own self-tests, MAME replays of seven games. "There is no hardware-captured data, test ROM or die model" (its `README.md`) | | SA-1 | **65816-python** again: a second 65C816 at 10.74 MHz | games; no krom tests (cartridge.md) | | Super FX (GSU-1/2) | **gsu-python** | Nintendo's *Development Manual Book II* with fullsnes's four corrections; krom's 31 GSUTest ROMs (1,225 of 1,226 rows by default, the last the contested C9); MAME replays. "The emulators agree on values and disagree on time" (its `README.md`) | | Cx4 | **hg51b-python**: Hitachi HG51B169 | the games' own built-in Cx4 test, all eight items on Mega Man X2 and X3; its data ROM computed by formula equals a real chip's dump. No manufacturer document exists (its `README.md`) | | ST018 | an ARMv3 core, to be shared with a GBA board | the games (cartridge.md) | --- ## 4. Where it's hard ### The port races (this week) **The channel.** The four ports are really two sets of four latches, one per direction. The S-SMP can clear its input latches by writing CONTROL bits 4-5 (domains.md, "Channels"; fullsnes, DOC). That is the only thing that crosses between the two domains. **The fault.** The full sweep left three licensed games blank: *Kishin Douji Zenki - Tenchi Meidou* and *Kawasaki Superbike Challenge* (USA, Europe). All are S-CPU/S-SMP port races (status.md, "The port races"). In Zenki (`docs/port-race.md`, "The question"): - the S-SMP clears its input ports, then loops until all four read zero; - the S-CPU rewrites `$2141` every 126 master clocks (6.01 S-SMP cycles), or 166 when the DRAM refresh falls inside the gap; - the S-SMP's read of `$F5` comes 8 S-SMP cycles (168 master clocks) after its clear. On the board the S-SMP never sees the zero. The game boots on a console, so the console must let it, at least sometimes. **The answer lies below one S-SMP cycle (21 master clocks)**: where in each chip's cycle a port write lands and a read samples, and where the refresh falls. **The S-SMP timing found this week** (snes-python 04a9805, 2026-11-25). The S-SMP runs whole SPC700 instructions until it reaches the S-CPU's time, so after a catch-up it can stand up to one instruction **past** the S-CPU. Until this week an S-CPU port write was applied after the catch-up, so an S-SMP read or clear made in that last instruction saw it late. Measured on the board's own code over 400 frames of Zenki: **80,235 S-SMP port reads missed a write and 108,216 clears were ordered before a write they followed** (port-race.md, "The overshoot, measured"). That is a measurement of our code, not of the console. The fix posts each S-CPU write at its own S-SMP cycle *before* the catch-up, and the S-SMP's reads and clears consult the posts by their own clock (timing.md, "Two clock domains"). The clear, in snes-python `src/snes_python/smp.py`: ```python def smp_clear(self, first: int, clock: int = 0) -> None: if self.pending: self._apply_before(clock) self.from_cpu[first] = self.from_cpu[first + 1] = 0 self.cleared[first] = self.cleared[first + 1] = clock ``` **What it changed.** Both Kawasaki images now boot, exact against Mesen2 at frames 300 and 900. Zenki still hangs. The board's window is now exactly D S-SMP cycles (167.8 master clocks for Zenki), and Zenki's refresh-stretched gap is 166: short by under 2 clocks (status.md). **The trap Aubrey should know about.** A scratch experiment that samples S-SMP port reads at mid-cycle reproduces Mesen2's probe grid cell for cell (0 of 286 cells off by more than 3 sigma) and boots Zenki. It is **FITTED** to Mesen2, a closed box, and was **not committed**: the probe cannot tell a read sampled half a cycle early from a clear that lands half a cycle late, and nothing documents either (port-race.md, "Mid-cycle port reads"). One small asymmetry also remains: an S-SMP *read* made in an earlier catch-up's overshoot has already returned the old value. Fixing it needs the S-SMP to pause mid-instruction; a coroutine experiment cost 16 % and fixed neither game. Measured: Zenki 0 such reads, Kawasaki (USA) 16 in 87,111 writes (timing.md). ### What we know versus what is HYPOTHESIS | Claim | Strength | | --- | --- | | 65C816 instruction and cycle behaviour | datasheet (DOC), SingleStepTests, hardware-verified test ROMs (TEST ROM) | | WRAM-to-WRAM DMA, the `$2137`/WRIO latch one dot apart, the dot-153 IRQs | MEASURED on Aubrey's console (undocumented-behavior.md U3, U5; timing.md) | | The S-SMP clock ratio, +2,700 to +2,990 ppm | MEASURED on one console (U8) | | S-DSP behaviour | TEST ROM (spc_dsp6 111/111) and DOC (anomie) | | Refresh position, HDMA and IRQ event positions | DOC (anomie) and OBSERVED (ares), with MEASURED corrections named in `board.py` (domains.md) | | The extra IRQ poll | FITTED to the console's HVLT/IRQN rows (status.md) | | The board's port window: an S-SMP access at its cycle's end | the board's DESIGN rule; no document; the console's save decides | | Mesen2's half-cycle-shorter window | OBSERVED (closed box); the mid-cycle experiment is FITTED to it | | The S-SMP model of the port-race grid (uniform phase, writes as instants) | HYPOTHESIS (port-race.md) | | The brightness curve, the first hi-res column | DOC against OBSERVED; open | | Power-on memory contents | the board assumes zeros; MAME fills WRAM with `$55`; Mesen2 randomises: open | | The DSP-before-access order inside an S-SMP cycle | HYPOTHESIS C14 (domains.md) | ### Which hardware probes would settle it All five are built and waiting in `/data/emu/PROBE-QUEUE.md`, one batch at a time: 1. **`port-race.sfc`**: an S-SMP loop that clears its ports and reads them D cycles later, against an S-CPU loop rewriting `$2141` every M master clocks: 11 x 26 = 286 cells, Zenki's loop byte for byte among them. It fits one window per variant. Near 0 says the board is right; near -10 says Mesen2's half cycle; hits on Zenki's own cells say the race is won through the refresh gap (port-race.md, "What the console's save will settle"). 2. **`05-poweron.sfc`**: power-on contents of WRAM, VRAM, OAM, CGRAM and the latches, and whether WAI resumes while /IRQ is held (the DKC lockstep question). 3. **`suite.sfc`, format 2**: the PPU's own OAM address while it draws. 4. **`photo-hires-edge.sfc`**: U9, the first hi-res column. 5. **`photo-brightness.sfc`**: U10, the brightness curve; about 400 sweep games turn on it. `docs/build-status.md` ("Console probes") lists more, not yet built: IRQ response around HTIME 0-4, WRMPYB rewritten at every gap, the S-DSP's power-on registers, and a CPU version 2 console (Aubrey's is version 1). --- ## 5. How our family models it ### The Python specification snes-python was **restarted on 2026-11-19**. The first build had been written with bsnes, Mesen2 and snes_spc source open; it is archived, and the rebuild uses only anomie, fullsnes, the SNESdev wiki, ares (ISC), MAME's BSD-3 files, test ROMs and Aubrey's console. GPL emulators are run as closed boxes, never read (snes-python `README.md`; `docs/restart.md`). The board owns everything around the two CPU cores: the address decoder, DMA/HDMA, mul/div, the timers, the joypad read, WRAM, both PPUs dot by dot, the rest of the S-SMP, the S-DSP, the cartridge maps and the coprocessors' wiring (README.md). The S-DSP, cartridge and coprocessor modules import nothing from the rest of the board, and a test enforces it (start-here.md). **Where it stands** (status.md, 2026-11-24). Of the main No-Intro set's 4,089 images, 3,514 match Mesen2's frame 300 exactly within 30 frames, 339 differ by one 5-bit step (the fades), 105 by more, 8 stay blank, none crash, and 123 need a coprocessor or mapper not built yet. Licensed plain cartridges: 2,807 of 3,162 exact. "Exact against Mesen2" is a closed-box agreement, not a hardware claim. ### Domains: two, and one channel `docs/domains.md` (2026-11-25), checked by `tests/test_domains.py`: | Domain | Clock | Parts | | --- | --- | --- | | S-CPU | master clock | the 65816, decoder, DMA/HDMA, mul/div, timers, WRAM, both PPUs, cartridge, joypads | | APU | 24.576 MHz resonator | the SPC700, the S-SMP's I/O page and timers, the S-DSP, ARAM | The S-SMP and S-DSP are one domain: the DSP is clocked inside every SPC700 bus cycle and both use ARAM every cycle, so splitting them gains nothing. **There is exactly one channel**: the four ports, now one named object, `smp.CPUPorts`. No interrupt line, DMA or shared memory crosses. Every port access from either side is a sync point; nothing else is. The PPUs are the natural next producer to split out for a threaded tier, but the spec does not separate them yet. ### The Rust tiers - **65816-rust** transcribes 65816-python at `71092a4` and proves every processor boundary identical: cycles, every bus cycle with its pins, all of the CPU state (65816-rust `README.md`). Local, no remote. - **spc700-rust** transcribes spc700-python at `552b24a` the same way (spc700-rust `README.md`). Local, no remote. - **There is no snes-rust board yet.** families.md lists the SNES row's Rust tiers as "-". The two cores are the first step toward a play-snes site. ### The speed plan, without JIT From emulator-lineage `docs/proposals/2026-11-jit.md` (a **draft** for Aubrey; its SNES row is the starting default, which domains.md confirms): - **No JIT for the SNES.** The proposal's verdict is "no; Super FX / SA-1 maybe a cached interpreter". The iPhone forbids JIT in native apps anyway, so every board must meet its target with `recompile: none`. - **Threads first.** The SPC700 + S-DSP domain is "the family's clearest threading candidate" (families.md). The S-CPU side would run ahead, the APU on its own thread. - **But the boundary is sub-cycle.** The port race shows it: a threaded tier must sync on **every** port access (domains.md, "Sync points"). A thread that runs freely between port accesses and meets the other side exactly there keeps the race intact. One that batches port accesses would bring back the lateness that kept Kawasaki blank. - **What a cached interpreter must watch.** WRAM holds code (decompressors run from it) and ARAM holds the uploaded sound driver: both are code-invalidation regions (domains.md, "Memory map"). --- ## 6. Further reading Only sources listed in emulator-lineage `docs/sources.md`, with the licence and verdict it records: | Source | Licence | Verdict in sources.md | | --- | --- | --- | | fullsnes (Martin Korth) | no licence stated, documentation | facts only; cite section and version | | anomie's SPC700 documents | documentation, no licence stated | facts only | | ares (Near and others) | ISC | code OK (with notice); a comparator | | MAME | GPL-2.0+, some files BSD-3 | closed box only; a per-file check for BSD-3 files | | Mesen2, MesenCE | GPL-3.0 | closed box only; their communities ban AI contributions | | bsnes / higan | GPL-3.0 | closed box only | | snes_spc 0.9.0 (blargg) | LGPL-2.1+ | closed box only; the S-DSP referee | | SNES_MiSTer P65C816 (srg320) | GPL | closed box only; 65816-python's testbench | | gilyon/snes-tests (cputest, spctest) | MIT | run as test programs; nothing committed | | PeterLemon/SNES (krom) | no licence stated | run only, nothing committed | | blargg's test ROMs | free to use, no formal licence | fetched as evidence, not shipped | | SingleStepTests | MIT | code OK; CPU cores' cycle-level judge | | 240p Test Suite, SNES port | GPL-2.0 | not yet decided (met 2026-11-24) | | Commercial ROMs, BIOS and boot ROMs | the makers' copyright | never shipped; found through `NO_INTRO_DIR` | Several of the spec's main sources are **not yet rows in sources.md**: anomie's SNES timing, register, memory-map and S-DSP documents, the SNESdev wiki, undisbeliever's probes, NEC's uPD7725 data sheet and Nintendo's development manual. So they are not listed here as reading. Their pins and tiers are in snes-python `docs/validation.md` and each core's `docs/validation.md`.