# Status **Measured at `221c669` on 2026-11-13 and 14** (every count below equals the same run at `9ca4a2f` before this pass, the seeded-fault catch matrix included, except rung 5, not re-run; the code is unchanged since `9ca4a2f`: the commits between them touch comments, docs and scripts' outside-data lookup only, and an AST comparison of every module confirms it). CPython 3.14.4 and PyPy 7.3.23 (Python 3.11.15); 6502-python at `741419a`. Commands run from the repository root with the venvs of README "Working on it"; PyPy runs under `PYPY_GC_NURSERY=1M nice -n 19`. Modelling level: **cycle** (every bus access, docs/start-here.md). The transcription `w65c02-rust` pins `9ca4a2f`. ## Rungs | Rung | Command | Judge (evidence) | Count at `221c669` | | --- | --- | --- | --- | | suite, CPython | `.venv/bin/python -m pytest` | all rungs' tests | 885 passed | | suite, PyPy | `.venv-pypy/bin/python -m pytest` | all rungs' tests | 885 passed | | quick loop | `.venv/bin/python -m pytest -m "not slow"` | as above, without the whole-corpus runs; includes the capture lockstep sample (the first 60,000 instructions of each reset capture, both parts) | 861 tests (24 marked slow deselected) | | 0 tables | `pytest tests/test_tables.py` | DOC (DS Tables 5-2, 7-1; GDS IV, V); MEASURED (CAP counts) | 212 / 210 / 178 / 210 documented opcodes per row; 253 opcodes against the captured counts (all but `$00`, `$CB`, `$DB`); the SST grid differs in exactly C1, C2, C3 | | 1 SingleStepTests | `.venv-pypy/bin/python -I scripts/run_single_step.py --jobs 3` | OBSERVED (emulator-generated corpus; a detector) | 7,660,000 cases, 0 fail: 5,777,843 pass in full, 1,882,157 counted under a named contradiction (C1 C2 C3 C10 C13 to C18) | | 2 Dormann | `.venv-pypy/bin/python -I scripts/run_programs.py` | self-checking; MEASURED for G65SC02 and R65C02 (the captured parts ran them) | extended test success on all four rows (`$24F1` / `$2569` / `$2434` / `$2569`, about 22.0 million instructions each); NMOS functional test `$3469` on all four (30,646,177) | | 3 Clark decimal | (same command) | as rung 2 | `ERROR` = 0 on all four rows (18,396,348 instructions each) | | 4 capture lockstep | `.venv-pypy/bin/python -I scripts/run_capture.py --jobs 3` | MEASURED (CAP: a G65SC12 and an R65C02) | eight captures to their end: 83,856,649 + 84,037,666 instructions, 65,772 interrupt entries, 2 resets; 0 mismatches, 0 model differences | | 4b Foot's capture | (same command) | MEASURED, data bus only | 1,471,138 instructions on `W65C02S` and on `R65C02`: 0 differences; it cannot tell the two rows apart | | 5 MAME lockstep | `.venv-pypy/bin/python -I scripts/run_mame_replay.py` (needs traces in `tests/mame_traces/`, recorded with `MAME_ROMPATH` set) | OBSERVED (MAME 0.285, a detector) | not re-run at `221c669`; at the build (2026-11-12, `af791ba`): 5,093,752 instructions on four machines, no register or written byte differs, 65 cycle counts differ as named (C19, `CPUSLEEP`); 10,694,568 more on two `W65C02S` drivers, no difference | | 6 directed | `pytest tests/test_directed.py` | DOC (data sheets, CL LK GF GW), TEST ROM (LT), MEASURED where CAP settled it | 341 tests; each of U1 to U13 and C1 to C19 has a test named for it | | 7 seeded faults | `.venv-pypy/bin/python -I scripts/seeded_faults.py --jobs 3` | every rung above on a faulted copy of `src/` | 44 faults, 44 caught; none by rung 1 alone | | 8 tooling | `pytest tests/test_tooling.py` (`CC65_BIN` or `da65` on PATH for the `da65` test) | 6502-python's hooks; DOC for the disassembler; MAME's tables and `da65` as detectors | 60 tests | | 9 `cpu.lnx` on the Lynx board | (lynx-python) | TEST ROM (LT) | **not run**: needs `lynx-python`'s milestone 2 | ## What is not verified Below tier 1 (no capture of a real part settles it; each is tagged in `src/`): - **The `W65C02S` row**: no capture of its own beyond Foot's data-bus capture, which cannot tell it from `R65C02`. Its reset reading the stack is a HYPOTHESIS (U1). `WAI` and `STP` rest on DS and GF's bench notes (DOC); their wake timing is U6 (HYPOTHESIS). - **The Lynx rows**: `G65SC02` is MEASURED as the G65SC12 and taken to be the Lynx I's cell (U10: an inference from VDS and LS); `Lynx2Cell`'s bit instructions are TEST ROM (LT test 7, not yet run on our board), its reset is U2 (HYPOTHESIS), `$CB`/`$DB` absent is DOC (C8). - **Poll timing** (U5): the frame's NMOS rule, HYPOTHESIS; LT test 1 (CLI) and CAP's interrupt entries agree where they reach. One-cycle NOPs not polling (U7): DOC and TEST ROM. - **`BRK`'s bus**: never executed in a capture; DOC, with SST agreeing. - `$CB`/`$DB` as NOPs on the non-WDC parts (U3): DOC only. - The seventh cycle of `BBR`/`BBS` and the page-crossing cycle of the `abs,X` shifts (never captured across a page); reset's first two addresses (U4). - RDY during a stretched write (U12): `note_stall()` as for reads, HYPOTHESIS. ## What is left - Rung 9, with `lynx-python`. - `w65c02-rust` to merge this pass (its comments carry the tags). - The provenance `unclear` item (docs/provenance.md): restate the two "read for facts" notes, or drop C2's decoder opinion. - docs/timing.md ("What the captures could not show") disagrees with U9 in docs/undocumented-behavior.md and the `_nops.py` comment on how often CAP could see `$5C`'s fourth cycle (2 of 6 against 3 of 9; agreeing every time either way): re-count from a capture run with `--json`. ## Open decisions (Aubrey's) - **8**: ask upstream (David Banks, George Foot) for a W65C02S reset capture and a run of Dormann's `wdc_op = 0` build on non-WDC parts (closes U1, U3). - **9**: public or private (the repository has a private remote). - **7**: more rows (an old WDC/NCR/Synertek row, `R65C102`, `G65SC102`) when a board brings evidence. - The `unclear` provenance finding (above), and whether the pinned MAME sparse checkout should keep the GPL `lynx` driver files at all, since they are never to be opened (`scripts/pinned_repos.json`).