# Status Every rung, its command, its count, and the commit and date it was measured at (charter, methodology "Documents"). The reference is spc700-python at `552b24a` (its main on 2026-11-25; no dependencies). Measured on Linux x86_64, rustc 1.93.1 (clippy and fmt from rustup stable 1.99), the reference on PyPy 3.11. "Identical" here is execution fidelity (this crate against the Python); the hardware confidence of each behaviour is the reference's docs/validation.md. The single gate is `scripts/ladder.sh` (rungs 0-6 in order; `FAULTS=1` adds rung 7): about 2 minutes on a loaded machine once the reference's caches (`external/reference-cache/552b24a/`) are full. Rungs 0-4 are the reference's own rungs, as its docs/validation.md "Results" lists them, each held to the reference's own result. | Rung | Command | Result | Measured at | | --- | --- | --- | --- | | 0 the bus schedule (the reference's rung 0) | `scripts/rung0.sh` | the 256 handlers and 256 opcode rows equal the reference's `HANDLER_NAMES` and `OPCODES`; the reference's rung 0 states (its `tests/test_bus_schedule.py` generator and seeds, 300 for each opcode but SLEEP and STOP): **76,200 steps, every cycle's kind, address, value and dummy flag, the registers and the memory identical** to the reference's | `46f1706`, 2026-11-25 | | 1 SingleStepTests spc700 (the reference's rung 1) | `scripts/rung1.sh` | the reference's judge (`tests/sst_runner.py`, transcribed): **256,000 cases, 0 fail**; then all 256,000 unmasked, **every cycle identical** to the reference's | `46f1706`, 2026-11-25 | | 2 gilyon's spctest (the reference's rung 2) | `scripts/rung2.sh` | 3 programs, **1,368 tests** 0 to $557 in order, 184,246 cycles, 51,549 instructions: the reference's line (`conformance/expected/programs.txt`) | `46f1706`, 2026-11-25 | | 3 PeterLemon's CPU tests (the reference's rung 3) | `scripts/rung2.sh` (`rung3.sh` runs it) | ADC AND DEC EOR INC ORA SBC, raw and as snapshots: **162 sub-tests $0n in each form, no $8n**, each run's cycles, instructions and codes the reference's | `46f1706`, 2026-11-25 | | 4 MAME 0.285 replays (the reference's rung 4) | `scripts/rung4.sh` | five games' sound drivers (Chrono Trigger, Donkey Kong Country, Final Fantasy III, Street Fighter II, Super Mario World) and spctest: **45,428,492 instructions, no divergence**, 12,360,645 I/O reads answered from MAME's log; each summary line the reference's (`conformance/expected/mame/`) | `46f1706`, 2026-11-25 | | 5 trace lockstep | `scripts/rung5.sh` | **32 of 32 scenarios byte-identical, 5,039,136 boundaries**: the harness I/O program (20,000), 16 random 64 KiB memories (50,000 boundaries each, resets and jumps between steps; all 256 opcodes in both direct pages), spctest's first program to its end with the S-CPU side scripted, PeterLemon's seven tests' first 300,000 boundaries raw and as snapshots | the 31 others at `46f1706`; the harness I/O scenario added and judged at `a65e9dd` (the seeded-fault run's control), 2026-11-25 | | 6 the bus contract | `scripts/rung6.sh` | `tests/core_contract.rs` (the reference's `tests/test_core_contract.py`, transcribed): 8 tests, and the doc test | `46f1706`, 2026-11-25 | | 7 seeded faults | `scripts/rung7.sh` | **40 of 40 caught** (below) | first run `46f1706`; the 40 of 40 at `a65e9dd`, 2026-11-25 | ## Seeded faults `scripts/seeded_faults.py`: 40 one-line faults (the dummy flag, the direct page's P, the indexed and `[d]+Y` internal cycles, the stack, the flags of 16-bit results, the stopped step, CMP's carry, ADC's H and V, CMP's no-write, DAA/DAS, XCN, TSET1, OR1, MOV1, ADDW, CMPW, DECW, MUL, DIV, the MOVs' dummy reads and `(X)+`, POP, PUSH, branches, BBS/BBC, DBNZ, CALL, TCALL, BRK, RET1, reset, and four in the harness and the replay), each built in a fresh copy and run through every judge. Result (2026-11-25, `scripts/rung7.sh`, 68 minutes on 2 jobs at load average 90): the control passes every judge; **38 of 40 caught** on the first run, caught by: tests 5, rung 0 32, rung 1 33, rungs 2-3 30, rung 4 34, lockstep 35. The two missed were both in the harness, in I/O the test programs never reach (timer 2's 16-cycle stage, CONTROL's port clear): blind spots, not equivalent mutants. The fix is a scenario, `conformance/scenarios/harness-io` (a hand-assembled program that reads all three timers and port 1 before and after a port clear); with it both are caught by the lockstep (`seeded_faults.py --only`, the control passing again): **40 of 40**. The `tables` judge catches none by design (no fault touches the generated tables). ## Speed Not a goal of this tier. PeterLemon's ADC test (raw) in the harness to its end, 3,959,720 instructions and 27,633,164 cycles, one core (`taskset`), release build, load average 90: **54.3 million instructions a second** (379 million cycles; best of 7, wall time, `target/release/bench`). The reference on PyPy 3.11: 12.5 million (best of 3, process time): about 4 times. ## Not carried, and why - The reference's rung 5 (a second per-cycle emulator) is not built there yet; this crate's rung 5 is its own trace lockstep. The reference's rung 6 is the board's (snes-python). - The disassembler, debug session, console and command line: Python-side tooling. ## Open - No remote: `gh repo create alewman/spc700-rust --private --source . --push` is Aubrey's call. - The pin `552b24a` is spc700-python's local main and spc700-python has no remote yet: create and push it first, or the README's links and the pin reach nothing anyone else can fetch.