# Documents Read in this order. | Document | What it holds | | --- | --- | | [start-here.md](start-here.md) | The SPC700 vs the S-SMP; registers, PSW and the P flag; addressing modes; flags per instruction; clocks; the bus with dummy reads and internal cycles; control flow; no interrupts; SLEEP/STOP; reset; what the core does not own | | [timing.md](timing.md) | Agreement measured between anomie, SingleStepTests and MAME; every addressing-mode group's cycles with addresses; the S-SMP timing the board applies; every opcode's kind sequence beside fullsnes' internal-cycle wait count | | [undocumented-behavior.md](undocumented-behavior.md) | Items U1-U15 (store read-before-write, page wrap, MUL, DAA/DAS, DIV, TSET1/TCLR1, BRK, P gating TEST, ...), contradictions C1-C9, board-side facts B1-B5, open items | | [validation.md](validation.md) | Every oracle by tier with pins; what was run here and what it showed; `.spc` files as a board-free harness; the rung plan | | [mame-oracle.md](mame-oracle.md) | The verified MAME 0.285 recipe with the IPL ROM taken from anomie's doc, its trace format, how MAME scores, the replay plan | | [handoff-brief.md](handoff-brief.md) | The task for the session that builds the core: decisions made by the user, the core boundary, the bus contract, the harness, rungs, tooling, open decisions with recommendations | ## Findings made while gathering (2026-10-21) These came from running things, not from any single document: 1. **Three independent sources agree on every instruction's length.** anomie's table and SingleStepTests agree on 254/256 opcodes on every one of 256,000 cases (both paths of all 28 conditionals); MAME 0.285's instruction-level core agrees with anomie on all 4,671,187 instructions of a gilyon spctest run. The two exceptions, SLEEP and STOP, are a generator artefact in the corpus. 2. **The order inside an instruction is where sources part.** SingleStepTests (higan's microcode) and ares agree on calls, returns, pushes and pops, and contradict anomie's guesses there (C6); anomie also differs on `[d]+Y` loads (C4). No hardware or die source settles any of it. (The 2026-10-21 text also compared Mesen2's source; that reading was withdrawn in Wave 2.) 3. **DIV's "weird" results are one function.** ares' closed form and anomie's 9-step loop agree on all 16,777,216 inputs; both match the corpus and gilyon's hand-written expectations. 4. **The S-SMP's IPL ROM need not be downloaded**: the 64 bytes printed in anomie's SPC700 doc have MAME's exact CRC-32 and SHA-1, so the MAME recipe and the harness take it from the pinned document. 5. **gilyon's spctest runs without a SNES.** Its three SPC700 programs sit at fixed offsets in the ROM and talk to the S-CPU through a four-port protocol a harness can play; MAME passes all 1,368 tests and all 162 of PeterLemon's hardware-verified sub-tests. 6. **ares resets timer 2 on the opposite CONTROL edge** to timers 0/1 and to anomie's rule (B2). A board item, found while mapping the core boundary. 7. **fullsnes' internal-cycle wait table contradicts every cycle sequence for PCALL** (3 I/O-wait internal cycles where all sources have 2), so that table cannot be taken as a judge either (C3). ## Sources and notices Quoted code fragments in these documents (`if(r.p.p) break;`, `r.ya`, `P = pull()`, the DIV closed form, `if(!timer2.enable.raise(data.bit(2)))`, "result is set based on y (high-byte) only") are from ares (ISC, "Copyright (c) 2004-2025 ares team, Near et al"); the notice is in [NOTICE](../NOTICE). GPL and LGPL emulators are closed boxes only (provenance.md, Wave 2).