# Mapper 235 detector report Black-box evidence only. No emulator source was read or copied. The test ROM generator is MIT; no generated ROM is stored here. ## Public specification NESdev `INES_Mapper_235` (public domain, archived): - `1xMPRNBB xxxAAAAA` - `M=0 horizontal`, `M=1 vertical` - `N=0 two screens`, `N=1 one screen` - `R=0 16 KiB`, `R=1 32 KiB` for the 150-in-1 revision documented there The R control shows the 100/260 dump revision uses the opposite R mapping. That is a revision difference, not a board bug for these dumps. ## Board and detector matrix ### M bit Single latch writes; the data value does not change the result. | Address | M | Board | Mesen2 | mame_nes | | --- | --- | --- | --- | --- | | `$8000` | 0 | horizontal | vertical | vertical | | `$80E0` | 0 | horizontal | vertical | vertical | | `$C000` | 0 | horizontal | vertical | vertical | | `$A000` | 1 | vertical | horizontal | horizontal | | `$E000` | 1 | vertical | horizontal | horizontal | ### N bit `$8400` (N=1): board, Mesen2 and mame_nes all return one-screen. ### R/P banks | Target | R | P | Board | Mesen2 | mame_nes | | --- | --- | --- | --- | --- | --- | | `$8000` | 0 | 0 | banks 0,1 | 0,1 | 0,1 | | `$9000` | 0 | 1 | banks 0,1 | not run | 0,1 | | `$8800` | 1 | 0 | 0,0 | 0,0 | 0,0 | | `$9800` | 1 | 1 | 1,1 | not run | 1,1 | ## Real-game states at frame 600 - **Board:** horizontal. The game writes NT0/NT1 and `$2000` has 842 nonzero bytes; `$2400` aliases it. - **Mesen2:** all four nametable windows are identical (one-screen); its `$2000` block is byte-identical to the board’s. The menu only uses the shared table, so the visible frame matches. - **mame_nes:** vertical; this separates the table the menu needs and produces the visible garble. ## Conclusion The board follows the public M table; the N and R/P controls match the board and both detectors. The reproducible fault is the **M/A13 sense in the detectors** on the synthetic path. mame_nes’s game failure is the vertical result of that difference. Mesen2’s game path is one-screen, which is visually equivalent for this menu but not the board’s horizontal state. This does not block the playability result: 100/150/210/260 all reach the menu and launch the Tetris title on the board. The detector matrix is a characterization of other implementations, not a requirement for the game to work. ## Acceptance test A fixed detector should: - return horizontal for `$8000`/`$C000` and vertical for `$A000`/`$E000`; - return one-screen for `$8400`; - keep the R/P bank matrix above for the 100/260 revisions; - pass the NROM horizontal/vertical controls; - keep the 100-in-1 menu and Tetris launch working. Generate the test with `tools/make_mirror_test.py`; R/P markers with `tools/make_r_test.py`. ## Friendly upstream draft > Hi - I have a small synthetic mapper-235 test that writes four nametables and paints green/red/blue for horizontal/vertical/one-screen. My board follows the published M table (`$8000`/`$C000` horizontal, `$A000`/`$E000` vertical), and the N and R/P controls pass. On the same single-write test, Mesen2 and mame_nes return the opposite M sense; the data value does not matter. The real 100-in-1 menu is coherent on the board and Mesen2 (Mesen2 is one-screen at frame 600) but vertical and garbled on mame_nes. Is the M inversion intentional for this board? The generator and acceptance steps are in the project; no game assets are needed. Happy to test a build. Do not send this without review.