# Status Last updated: 2026-11-20. ## What is done - The project structure, methodology, mapper template and audit-log template exist. - `tools/run_rom.py` runs a ROM headlessly, captures screenshots, records register writes and scripts button presses; it reproduced the 235 menu → Tetris launch. - Mapper 235 is documented from an observed run: menu boots with mask `0x1E`, A launches Tetris, four No-Intro dumps hashed, write summary captured. - Mapper 559 is documented as an off-road investigation: header, reset vectors, boot path, register writes, board-family hypothesis, failed mappings and open questions are recorded. - The first 559 audit log includes the negative results, not only the surviving hypothesis. The bank-13 write summary shows `$F800` 21,031 times and `$5800` 10,516 times over 600 frames, so the next target is the IRQ/BRK loop. - **2026-11-20: 559 solved in emulation.** The dump is Namco's licensed mapper-19 *Sangokushi II - Haou no Tairiku (Japan)* with 968 bytes patched; `tools/diff_dumps.py` lists the patches, and each names a 163 register and its pirate replacement. `experiments/diff_mapper.py` plays the game within 0-20 pixels per frame of the licensed cart (held-out run). The IRQ period is fitted. Audit entry 16; method in [docs/methodology.md](docs/methodology.md), "First: look for the original". - mame_nes 2.0 (MAME 0.289, external GPL binary) is added as a core detector: 260-in-1 matches the board at 600, but 100/150/210 render a garbled menu. Its 140/140 AccuracyCoin score is a core claim, not a mapper-235 verdict. Root cause isolated by black-box memory dumps at 600: PRG and CHR are byte-identical; CIRAM differs. The runtime cart device is `:nes_slot:bmc_gold260`; 100-in-1 is vertical in mame_nes where the board is horizontal, and 260-in-1 is one-screen (visible-compatible because the 260 menu uses only `$2000`). Changing the header PRG size to claim 3 MiB makes 100/150/210 coherent (one-screen) while the original body stays intact; a 3 MiB body with the original header still garbles, so the trigger is the header. Under the workaround, 100-in-1 launches the Tetris title at frame 900 after an A press at 600. This is a local diagnostic workaround, not the upstream fix. - Synthetic CIRAM test added: `tools/make_mirror_test.py` (MIT) generates a game-free mapper-235 ROM. NROM H/V controls pass on the board, Mesen2 and mame_nes. On mapper 235, the board follows the documented address table (`$8000`/`$C000` H, `$A000`/`$E000` V); Mesen2 and mame_nes invert it on the same single-write stimulus, independent of data value. The R/P control (`tools/make_r_test.py`) shows the board, Mesen2 and mame_nes all use the same R mapping on these dumps; the public 150-in-1 R note is a different board revision. `GoldenGame235` is correct for this dump set. Consolidated matrix and upstream draft: [detector-report.md](mappers/235-golden-game/detector-report.md). This is the fix acceptance test; [mirror-test.md](mappers/235-golden-game/mirror-test.md). ## Current state | Mapper | Implementation | Observed | Verified | State | | --- | --- | --- | --- | --- | | 235 Golden Game | `famicom-python` `GoldenGame235` | all four dumps menu and Tetris title; 40-entry launch smoke 160/160 different native checks; screen-only subset distinct; no page switch found; 3D Block reaches a playfield | no | first-page launch broad; Tetris/Tetris 2 option screens only; full gameplay/hardware unverified; detector M path remains an observation, not a blocker | | 559 Sangokushi II (Subor) | experiment `Subor559` (`experiments/diff_mapper.py`) | title, menu, map screen; 0-20 px/frame from the licensed mapper-19 cart on famicom-python, held out | no | register map from the patches; IRQ period fitted; `$9800`, CHR pairs, counter clock open; ported to famicom-python as `Subor559` (main `f407e00`, pushed 2026-11-20; its C88) | | 206 Aladdin III | `Namco108` | frame 1200 exact vs Mesen2; title content; boot lag only | no | mapper windows correct; boot/PPU upload timing open | ## Next experiments Items 1-5 of the 2026-11-17 list (559's IRQ/BRK loop, the `$E000` sweeps, the MAME Subor comparison, `$9C00-$9C0F` as CHR, a second source) are superseded by audit entry 16: `$E000-$EC00` are CHR, `$9C00` and `$9C0C-$9C0F` are PRG and nametables, and the BRK loop came from wrong banks. 1. **Done 2026-11-20:** `Subor559` in famicom-python (`cartridge/chinese.py`, `f407e00`, merged to its main and pushed 2026-11-20), integer step (thirds of a CPU cycle), two register tests in `tests/test_mappers_remaining.py` that three deliberate breakages each fail, and C88 in its `docs/undocumented-behavior.md`. Lockstep against the licensed cart with the ported class: map screen 0-23 px/frame. The experiment here stays as the record. 2. **Compare the siblings the same way.** `Sangokushi II - Haou no Tairiku (China) (Ja) (Waixing) (Pirate)` (mapper 176) and `Sangokushi III - Haou no Tairiku (Asia) (Ja) (Pirate)` (mapper 330) against the same mapper-19 original: their patches test the 176 and 330 models. 3. **559's open details:** what `$9800 = 1` does; whether each CHR pair is two halves or two copies; whether the counter counts PPU scanlines or divides M2 (they differ only with rendering off). 4. **A second source for 559:** a hardware owner or board photo would turn `FITTED` into `MEASURED`. 5. **235 detector triage.** Mesen2 matches 100-in-1 at board 297 (frame 300) and 593 (frame 600), and 260-in-1 at 593 (frame 600). mame_nes matches 260-in-1 at 600 but renders a garbled menu on 100/150/210. At 600 its PRG and CHR are byte-identical to the board; only CIRAM differs (vertical on 100, one-screen on 260; the board is horizontal). The runtime cart device is `:nes_slot:bmc_gold260`. A local header PRG-size change (`0x40`/`0x80` → `0xC0`) makes 100/150/210 coherent; a 3 MiB body with the original header still garbles, so the header is the trigger. The synthetic test shows both Mesen2 and mame_nes invert the M/A13 address bit on single-write stimuli, while the board follows the documented table. Direct Mesen2 PPU memory at 600 shows its game path is one-screen, not horizontal; the board is horizontal, and the visible shared table matches. mame_nes is vertical, which is the visible failure. The N=1 synthetic control (`$8400`) is blue in the board, Mesen2 and mame_nes, so the fault is specific to M/A13. This is a detector CIRAM/mirroring limitation; no mapper change is justified. See the 235 plan below. ## 235 plan The existing evidence says the four Golden Games are **late at frame 60**, not wrong: three settle by frame 300, the 260-in-1 by frame 600. Treat the latch/CHR map as correct until a frame-lag test says otherwise. Mesen2 is GPL-3.0 and is used only as a black-box binary. Do not read or build its source, and do not open `scripts/mesen2-detector-fixes.patch`; it contains GPL source diffs. The `compat_sweep.py` and `mesen_lockstep.py` scripts are MIT; use a prebuilt detector. If only an unpatched Mesen2 is available, record that caveat and treat its frames as a detector, not an oracle. 1. **Reproduce the row.** Run the pinned `compat_sweep.py --mappers 235 --frames 60,300,600 --jobs 1` case for 100-in-1 and 260-in-1 against Mesen2. Confirm the same three pixel counts. Run `sweep_triage.py` on the result; record whether the differing lines are mid-line toggles, mid-line register writes, or "diagnose by hand." 2. **Build a frame-lag table.** Capture the board's frames 55-70 and Mesen2's frames 55-70. For each board frame, find the closest reference frame (pixel equality first, then pixel count). If the board's frame N equals reference frame N+d, the question is a constant boot lag; if no d matches, it is a content/bank difference. 3. **Find the first divergent instruction.** Run the pinned `mesen_lockstep.py "$ROM" --frames 60` on the 260-in-1. Record the first CPU/PPU/latch divergence, not the first differing picture. 4. **Test the hypotheses in this order, one variable per run:** - power-on/PPU-CPU alignment and the sweep's frame N vs N-1 convention; - CHR-RAM power-on contents and PPU power-up state; - mapper 235 latch reset timing and bus conflicts; - only then the latch/CHR register model. 5. **Fix only a proven cause.** Add a gate: the final menu frame matches the reference and the lag is either zero or documented; all four dumps; the 235 menu → Tetris launch; the quick suite. Update the mapper page and audit log in the same change. 6. **Stop and document if the cause is reference-only** (Mesen2 timing/alignment or an unpatchable detector). A documented "late but identical" result is a contribution; a fitted mapper change made to chase a reference artifact is not. Artifacts: the sweep JSONL/triage, frame-lag table, lockstep log around the first divergence, latch-write trace, and screenshots. No ROMs. ## Provenance - The project is MIT-targeted. GPL/LGPL is black-box-only; see [docs/provenance.md](docs/provenance.md). - Two source-view incidents are logged: puNES `database.h` (GPL-2.0) and Mesen2 `CommandLineHelper.cs`/`TestRunner.cs`/Lua documentation (GPL-3.0). No project content uses them; local copies are deleted. - MAME as a whole is GPL-2.0; only its explicitly BSD-3-Clause Subor files were read, for facts, with no code copied. MAME is a sibling reference for 559, not an oracle: it has no mapper 559 and its Subor Type 2 code has open TODOs. - NESdev Wiki is the documentation oracle and is public domain. - GPL/LGPL tools are external black boxes, never vendored; the MIT repository contains only our notes, our code, and PD/MIT/BSD facts. A `GPL-box` observation is still our note. - The release checklist in `docs/provenance.md` is not complete; the project stays private/local. ## Blockers - No hardware capture for 559. - No second reference emulator that supports 559. - No synthetic test ROM yet; the current gate is "does the real game boot," which is weak. - Provenance review and the release checklist must be complete before any public remote. ## Environment - Emulator reference: `famicom-python` clone, searched by the audit logs by commit. - Python: CPython 3.12 and PyPy 3.11. - Analysis: capstone; py65 was used once for disassembly exploration. - Rust: GNU toolchain on this secondary system; MSVC linker absent. - ROM source: local No-Intro mirror, path via `NO_INTRO_DIR`. - No ROMs or firmware are stored here. ## Maintenance rule Append to an audit log; do not rewrite its history. Update this page and the mapper page when a claim changes, with the date and the evidence. A stale status page is a bug.