# Mapper 235 — Golden Game **Status:** implemented in `famicom-python`; all four dumps reach the menu and launch the Tetris title; hardware unverified. Detector M/R differences are documented observations, not blockers. The emulator's sweep finds the board late at frame 60 (three dumps settle by frame 300, the 260-in-1 by frame 600). ## Identity | Field | Value | | --- | --- | | NES 2.0 mapper | 235, submapper 0 | | Board | address-latched multicart; "Golden Game" | | ROMs | 100/150/210/260-in-1, Taiwan, English, pirate | | PRG | 1 MiB / 2 MiB / 2 MiB / 3 MiB | | CHR | 0 KiB in the header; 8 KiB CHR-RAM on the board | | Header flags | `B0 E8 00 00 00` | | Mirroring | header horizontal; the latch can override | | Battery | no | | ROM | SHA1 | | --- | --- | | Golden Game 100-in-1 | `532678d6e2b30e17426a85e95ce497ba88b9d005` | | Golden Game 150-in-1 | `82978aa52d9759d704de610665ceec4eb6f8136e` | | Golden Game 210-in-1 | `1892780e24561f8b1769ff810757b7c85d492855` | | Golden Game 260-in-1 | `76e442f300fcedd32989d09903da128cb8c53e5a` | Obtain from a No-Intro NES mirror through `NO_INTRO_DIR`; no ROM is stored here. ## Register map The implementation is `GoldenGame235` in `famicom-python/cartridge/multicart.py`. It follows the mapper-235 notes the code names as `INES_Mapper_235.wiki` (The Mad Dumper's notes): an address latch over up to four 1 MiB ROMs. | Address | Access | Effect | Source | Evidence | Confidence | | --- | --- | --- | --- | --- | --- | | `$8000-$FFFF` | write | latch the address: `1xMPRNBB xxxAAAAA`; chip and 32 KiB page, 16 KiB half, mirroring, one-screen option | NESdev mapper 235 (PD); code model (MIT) | `DOC` | medium | | `$8000-$FFFF` | read | open bus when the selected 32 KiB page is beyond the file | NESdev model (PD); implementation (MIT) | `DOC`/`FITTED` | low | | CHR | — | 8 KiB CHR-RAM, mapped whole | NESdev model (PD); implementation (MIT) | `DOC`/`OBSERVED` | medium | | reset | — | power-on and reset clear the latch | NESdev model (PD); implementation (MIT) | `DOC` | low | The write trace confirms the 32 KiB latch writes; the synthetic test separates the latch address from the data. Public NESdev notes define M=0 horizontal/M=1 vertical and R=0 16 KiB/R=1 32 KiB. The R/P control (`tools/make_r_test.py`) shows the board, Mesen2 and mame_nes all use the opposite R mapping on these dumps; the public note is a different board revision. The current `GoldenGame235` R branch is correct for this dump set. The table remains documentation-derived for the public 150 revision. ## What was observed - `Golden Game 260-in-1` reaches its menu at 600 frames. The menu lists Tetris, Mr. Mario, Ms. Pac-Man and others; the header says `260 IN 1`. - Pressing **A** on the default selection launches Tetris; the title screen renders. This was observed on **all four dumps** (100/150/210/260) at frame 900 after `600:A:4`; mask `0x1E`, PC `0x83D5`. Pressing **Start** at the same point did not launch in the tested 260 run. - Screenshots (local only, gitignored): `evidence/menu-260-in-1.png`, `evidence/tetris-title.png`. They contain third-party game imagery and are **not MIT**; they must stay out of the public repository. - Write summary: [writes-summary.txt](evidence/writes-summary.txt) (address, count, first/last frame, values). The address fields are 32 KiB latch writes; the data values are not used by the documented model. - Synthetic CIRAM test: [mirror-test.md](mirror-test.md). Board green for horizontal; no-latch control green on all three; with the game's latch values Mesen2 and mame_nes turn red (vertical). This is the acceptance test for the detector fix. Consolidated results and the friendly upstream draft: [detector-report.md](detector-report.md). - First-page launch matrix: selections 0-39 on each dump, menu at 600 → Down N → A → frame 900; 160/160 different native checks, but the native check includes audio/cycles, so this is a launch smoke test. The screen-only Python subset is distinct; selected samples reach Tetris, Tetris 2 and 3D Block. No page switch was found beyond the 40-row menu. This is `OBSERVED` on `famicom-python`; it says the menu and first game are reachable, not that the mapper is correct. ## The sweep difference `famicom-python/tests/sweep_failures.tsv` reports: | ROM | differences at frames 60 / 300 / 600 | | --- | --- | | Golden Game 100-in-1 | 58138 / 0 / 0 | | Golden Game 150-in-1 | 58118 / 0 / 0 | | Golden Game 210-in-1 | 58111 / 0 / 0 | | Golden Game 260-in-1 | 58287 / 19237 / 0 | The validation record says: "the four Golden Games (235: late at frame 60, three settle)." The final menus are identical. This makes the first question **why the board's boot is late**, not whether the latch/CHR map produces the menu. The 260-in-1 takes longer to settle, which is the second clue. A Mesen2 black-box check sharpens it: Mesen2 frame 300/600 matches board frame 297/593 for 100-in-1 with **0 differing pixels**; 260-in-1 matches at 600↔593 with **0**, but at Mesen2 300 the best board frame is 313 with **19,172** pixels still different. The offsets are 3 at 300 and 7 at 600 for 100-in-1, so this is **not a constant lag**. It is a transient/frame-phase difference, possibly menu animation, frame counting, power-on or CHR-RAM; the mapper is not yet implicated. ## Source coverage | Source | Licence | What it covers | Used? | | --- | --- | --- | --- | | NESdev `INES_Mapper_235` | public domain | latch bit notes | yes; documentation oracle | | `famicom-python` `GoldenGame235` | MIT | implementation and test instrument | yes; observed | | MAME mapper 235 | per-file; **not checked** | unknown | no claim | | Mesen2 | GPL-3.0, black box | sweep detector | via the MIT sweep scripts; no source | | mame_nes (theklap/mame_nes) | GPL-2.0 MAME fork, external black box | frame detector | 260-in-1 matches at 600; 100/150/210 CIRAM/mirroring differs; a local 3 MiB header makes them coherent; synthetic latch test is red | | Synthetic CIRAM test | MIT | generated test ROM; no game data | board green; no-latch all green; latch variant red in Mesen2 and mame_nes | | No-Intro | metadata | ROM names, hashes | yes | | hardware / test ROM | — | none | **missing** | ## Coverage summary `DOC + OBSERVED + FITTED` plus the synthetic test. NESdev covers the latch notes; our emulator shows the menu and Tetris; the generated CIRAM test is green on the board and red in both detectors on the single-write M=0 stimulus. Mesen2 matches the final menu at 300/600 (3/7-frame phase offset for 100-in-1); its direct PPU memory at 600 is one-screen, and the board's `$2000` block is byte-identical, while the 260-in-1 has a longer transient and matches at 600. At 600, mame_nes has the same PRG bank and CHR-RAM as the board but different CIRAM: its 100-in-1 nametables are vertical where the board is horizontal, and its 260-in-1 nametables are one-screen; the 260 menu only uses `$2000`, so it still matches. The game itself writes NT0 and NT1 (`$2000-$27FF`) and expects horizontal aliasing. A local header-only change that claims 3 MiB makes mame_nes choose one-screen and renders 100/150/210 coherently; the same 3 MiB body with the original header still garbles, so the trigger is the header size. Under that workaround, 100-in-1 also launches the Tetris title at frame 900 after an A press at 600. This is a diagnostic workaround, not a truthful header or an upstream fix. No hardware. ## Claim ledger | Claim | Value | Source + licence | Evidence | Confidence | Falsifier or test | | --- | --- | --- | --- | --- | --- | | Latch address model | `1xMPRNBB xxxAAAAA` | NESdev mapper 235 (PD); implementation (MIT) | `DOC` | medium | decode the 600-frame write summary into latch fields | | Menu and Tetris reachable | all four dumps | our ROM trace | `OBSERVED` | high in emulator | scripted `600:A:4` launch; 100/150/210/260 at 900 | | Frame 60 late | three dumps settle by 300, 260-in-1 by 600 | famicom-python validation record and sweep (MIT) | `OBSERVED`/`DOC` | high | frame-hash table | | Frame phase at settle | 100: Mesen2 300/600 = board 297/593, 0 pixels; 260: 600 = board 593, 0 pixels; at 300 best board 313, 19,172 pixels differ | Mesen2 black-box detector (GPL-3.0) through the MIT harness | `OBSERVED` | medium | frame-hash/phase check; not a constant lag | | mame_nes comparison | 260: 600 = 0 pixels; 100/150/210: garbled, best frame in 580-620 still differs by 16,859-18,186; at 600 PRG and CHR are byte-identical, CIRAM differs; mame_nes is vertical on 100 and one-screen on 260; a local `0xC0` header makes all three coherent | mame_nes 2.0 (MAME 0.289, GPL-2.0 external) through the MIT harness and black-box Lua memory dumps | `OBSERVED` | high for CIRAM and header trigger; medium for cause | core detector, not a mapper-235 oracle; no source | | Synthetic mirroring test | horizontal expected | `tools/make_mirror_test.py` (MIT); external detector binaries | board green both variants; no-latch green everywhere; latch variant red in Mesen2 and mame_nes; NROM H/V control passes on all three; M=0/M=1 address table inverts in both detectors; N=1 blue in all three | `OBSERVED` | high for behavior; medium for cause | acceptance: board address table plus N=1; data values ignored | | First-page launch matrix | launch smoke | native `famicom-bench` (MIT) + generated inputs | 40 selections x 4 dumps; 160/160 different native checks; Python screen-hash subset distinct; samples launch | `OBSERVED` | medium-high; check is not screen-only | visual/page probes; play sample | | Page/scroll | 40-row page | board screenshots + native probes | 40 Downs still same page; Right/Left columns; Start/Select no page; B launches | `OBSERVED` | high for tested controls; hidden pages not claimed | more controls/hardware | | CHR-RAM | 8 KiB | NESdev model (PD); implementation (MIT) | `DOC` | medium | trace CHR writes/reads | | Boot/phase cause | unknown | — | `HYPOTHESIS` | low | frame-hash table, transition images, lockstep | ## Open questions 1. Why is the board late at frame 60, and why does the 260-in-1 need until frame 600 to settle? The detector shows it is not a constant lag: 100-in-1 matches at board 297 for Mesen2 300 and board 593 for Mesen2 600; 260-in-1 matches only at board 593 for Mesen2 600, with a different screen at 300. Is this menu animation, frame counting, power-on/CHR-RAM, or a real game-timing difference? 2. **Answered for mame_nes:** its runtime cart device is `:nes_slot:bmc_gold260`; at 600 the PRG bank and CHR-RAM match the board, but CIRAM does not. Its 100-in-1 nametables are vertical where the board is horizontal, and its 260-in-1 nametables are one-screen; the 260 menu uses only `$2000`, so it still matches. The game writes NT0 and NT1 and expects horizontal aliasing; a local 3 MiB header makes the device choose one-screen and renders 100/150/210 coherently. The proper fix belongs in the external detector, not in the mapper. 3. Is the latch write-only address decode still correct? The trace and the synthetic test now point to yes; a full byte-level latch trace of the game is still open. The test shows Mesen2 and mame_nes inverting the M/A13 address bit, while the board follows the documented M=0 horizontal / M=1 vertical table. 4. Does the game use mid-frame mirroring changes or CHR-RAM writes that the current model approximates? 5. What is the correct emulator gate? A menu screenshot is weak; a matched final frame plus a documented lag, or a latch trace and a game launch, is better. ## Implementation - `famicom-python`: `GoldenGame235`, registered as mapper 235. - No Rust port or focused regression yet. - The last observed run is recorded in [audit.md](audit.md). ## What this does not claim That mapper 235 is fully correct, that the four dumps are equivalent, or that the menu screenshot is a verification. The sweep's `differs` result remains unresolved.