# Audit log — mapper 559 ## Entry 1 — 2026-11-17 — identification and static reading - **Environment:** `famicom-python` clone; PyPy 3.11; No-Intro NES mirror via `NO_INTRO_DIR`; capstone for disassembly. - **ROM:** `Sangokushi II - Haou no Tairiku (China) (Ja) (Subor) (Pirate)`, SHA1 `72bfd7a27cf6e5963114d16f085f67c226ea5fe4`. - **Header:** NES 2.0, flags `F2 28 02 00 70`; mapper 559, submapper 0; PRG 256 KiB, CHR 256 KiB; 8 KiB battery WRAM; horizontal mirroring. - **Question:** what board is this, and can the existing mapper-330/Namco-163 family explain it? - **Result:** `System.from_rom` raises `NotImplementedError: mapper 559 is not implemented yet`. - **Sources:** NESWiki has no 559 page (404). MAME's `subor.cpp/h` (BSD-3-Clause files; MAME as a whole is GPL-2.0) describe Subor Type 0/1/2 but no mapper 559; only those BSD files were read, for facts, with no code copied. No mapper-559 support was available in the black-box detectors we tried. NESWiki mapper 532 is a Chinese translation of the same game using VirtuaNES EX, which warns that this title has emulator-specific translation boards. - **Static reading:** - Reset `$E000`, NMI `$F800`, IRQ `$FB2D`. - Reset code: `SEI; CLD`; `$2000 = 1`; `$9800 = 1`; APU `$4010`, `$4015`, `$4017`; PPU off; clear `$0000-$07FF`; `JSR $F3BD`; dispatch via the table at `$E07C`; first path `$E09A`; calls `$A000`, `$A003`, `$A006`, `$A015`, `$A027`, `$A036`, `$A045`. - `$A000` code is **8 KiB PRG bank 13**: `JMP $A3D2`, `RTS` at `$A003`, then game code; it calls `$C1AF`, `$D6B6`, `$DEBF` in the `$C000` window. - The boot bank contains routines at `$F206` (writes `$B000-$D800` in pairs with values from zero page `$AE-$B3`), `$F237/$F24B` (writes `$9C00` and `$A000`), `$F25F/$F266` (writes `$8000`), and `$F816` (writes `$F800 = 2`). - **Interpretation:** the board is mapper-330/Namco-163-like, but not exactly mapper 330. The extra `$9C00/$9C0C-$9C0F` writes and the fixed/switchable window question remain. - **Evidence:** `DOC` for the sources, `OBSERVED` for the static code, `HYPOTHESIS` for the board family. - **Confidence:** medium for the family, low for the register semantics. - **Next:** run the ROM under a mapper-330-based mapping and trace the first failure. ## Entry 2 — 2026-11-17 — first mapping: bank 13 at `$A000`, bank 0 at `$C000` - **Question:** does the mapper-330 base with the utility bank 13 reach the game? - **Mapping (`MAPPER559_VARIANT=first`):** last 8 KiB fixed at `$E000`; bank 13 at `$A000`; bank 0 at `$C000`; mapper-330 PRG writes left active; no IRQ ack beyond the base. - **Command:** equivalent to `set MAPPER559_VARIANT=first` and `python tools/run_rom.py "$ROM" --frames 600 --install-module mappers/559-sangokushi-subor/experiments/partial_mapper.py --trace evidence/first-trace.jsonl`. - **Raw result:** at 600 frames the CPU PC is `$4010` and the PPU mask is `$00`. The write trace shows `$E000/$E400/$E800/$EC00 = 0`; later `$8000 = $35`, `$9C00 = $38`, `$A000 = $F7`; `$F800 = 0` and `$5800 = 0` repeat. A step trace at frame 11 shows the IRQ handler at `$FB2D` returning into data at `$A029`; opcodes `00` (BRK), `10`, `40` are executed; the CPU then leaves ROM to `$E3`; the 600-frame sample is `$4010`. - **Screenshots (local only, gitignored):** `evidence/blank-600f.png`; [first-summary.txt](evidence/first-summary.txt). - **Interpretation:** the boot gets through the reset and the `$A000` calls, but the `$C000` window or the interrupt/bank state is wrong. The `$E000/$E800 = 0` writes would map bank 0 into windows under the mapper-330 model, which is a candidate cause. The repeated `$F800/$5800` writes in the IRQ handler are an unhandled acknowledgement candidate. - **Evidence:** `OBSERVED` for PC/mask/writes; `HYPOTHESIS` for the cause. - **Confidence:** medium for the crash location, low for the cause. - **Next:** keep bank 13 in the `$C000` window and see whether the crash moves. ## Entry 3 — 2026-11-17 — bank 13 at `$A000/$C000`; bank 30; all 13 - **Question:** is the `$C000` window supposed to be the same utility bank, and does fixing it reach rendering? - **Mappings:** - `bank13`: bank 13 at `$A000` and `$C000`; ignore `$E000-$F7FF` PRG writes; `$F800/$5800` clear the IRQ state. - `bank30`: the same, but bank 30 at `$C000`. - `all13`: bank 13 at `$8000`, `$A000` and `$C000`. - **Raw result:** - `bank13`: PC is `$FB3A` at 600 frames (an earlier sample was `$11F4`); PPU mask `$00`; no rendering. The write summary counts `$F800` 21,031 times, `$5800` 10,516 times, `$4800` 202 times (values `00/30/F0/FF`), and `$E000/$E400/$E800/$EC00` once each at frame 11 with `0`. Most of the run is in the IRQ/BRK handler, not a main loop. - `bank30`: PC is `$DC8F`, which is data (`0F 21 36 ...`) in bank 30; PPU mask `$00`. - `all13`: PC is `$074E` in RAM; PPU mask `$00`. - No mapping enables the PPU. - **Evidence:** [bank13-summary.txt](evidence/bank13-summary.txt), [first-summary.txt](evidence/first-summary.txt), `evidence/bank13-600f.png` (local only, gitignored). - **Interpretation:** bank 13 in the `$C000` window removes the immediate `$4010` crash, which is evidence that the `$A000` utility code and the `$C1AF/$D6B6/$DEBF` calls are real. The remaining failure is not solved by the three simple PRG guesses: the game still reaches RAM/IRQ without enabling rendering. The exact window map and the interrupt/audio handshake are still missing. - **Evidence:** `OBSERVED` for PC/mask; `FITTED` for the mappings. - **Confidence:** medium that bank 13 belongs in `$C000`; low for everything else. - **Next:** trace the last non-`$F800` writes before the PC enters RAM; test whether `$5800` is the IRQ ack; inspect `$9C00-$9C0F` as separate CHR registers. ## Entry 4 — 2026-11-18 — detector check and first BRK - **Question:** does a modern detector already play 559, and where exactly does the bank-13 path fail? - **Detector result:** Mesen2 `LoadRom` fails on the 559 image; mame_nes produces no frame at 600 or 1200. There is no black-box detector for this mapper. - **BRK trace (`bank13`):** the first `$FB2D` entry is at frame 11, `P=$64`, `SP=$F6`; there is no NMI and only one logged IRQ request (at `$E00F`). The last PCs are `$A04E → $A050 → $A053 → $A055 → $A058`; `$A058` is `BRK` in bank 13. The handler then loops at `$FB37/$FB39/$FB3A`; at frame 60 the CPU is still there and PPU mask is `$00`. - **Forced PPU:** setting mask `$1E` at frame 600 shows a solid green screen; nametable 0 is all `$01`. The game has not built a picture. - **Bank variants (600 frames, mask always `$00`):** - `A13 C13`, E-writes allowed: PC `$FB37`. - `A13 C12`: `$DF30`; `A13 C14`: `$DD07`; `A13 C15`: `$DC3C`; `A13 C30`: `$DC8F`; `A13 C31`: `$E3DC`. - `A0 C13` and `A0 C0`: PC `$01FC` (RAM). - **Interpretation:** the failure is a control-flow/BRK path, not merely a missing PPU enable. The game reaches bank-13 data at `$A058`; the correct PRG windows or the intended entry into the utility bank are still missing. The `$C000` bank is not simply 12–15 or 30–31. - **Evidence:** `OBSERVED`; no detector, no hardware. - **Confidence:** high for the PC/BRK path; low for the bank cause. - **Next:** trace how control reaches `$A053` and inspect the stack/return address; compare against the utility-bank entry and the `$E000/$E800/$EC00` writes. ## Entry 5 — 2026-11-18 — `$9C00`/`$A000` clue - **Question:** what do the `$9C00` and `$A000` writes in `F237` control? - **Static clue:** `F237` is `STY $00E2; INY; STY $00E3; STY $9C00; DEY; ...; ORA #$C0; STA $A000`. It writes both registers before a caller uses `$A003`. The existing mapper-330 base treats `$A000` as CHR and ignores `$9C00`. - **Black-box variants at 600 frames:** - `$9C00` → `$8000` PRG, `$A000` left as CHR: **PPU mask `$39`**, PC `$13`; striped frame, not a menu. - `$9C00` → `$A000` PRG: mask `$00`, PC `$C935`. - `$9C00` → `$C000` PRG: mask `$00`, PC `$DC8F`. - `$A000` as PRG with `$9C00` unchanged: mask `$00`, PC `$DBBC`. - `$A000` as PRG plus `$9C00` → `$8000`: mask `$00`, PC `$DBBC`. - **Interpretation:** `$9C00` is a real PRG-related register and the `$8000` window is its most plausible target, but the current value/target still runs the CPU into RAM. This is a clue, not a working mapper. - **Evidence:** `OBSERVED`; no detector, no hardware. - **Confidence:** medium that `$9C00` is PRG-related; low for the exact mapping. - **Next:** trace which bank `$9C00` selects and the `$A003`/`$A045` call target; then check whether `$9C00` is a bank-high or bank-low byte. ## Entry 6 — 2026-11-18 — `$A000` low-bank clue / black PPU - **Question:** is `$A000`’s low 5 bits the PRG bank selected by `F237`, and does that reach a menu? - **Clue:** `F237` writes `$9C00 = Y+1` and `$A000 = Y|C0`; `$A000 & 0x1F` is 23/25 for the observed Y values. - **Variants (600/1200 frames):** - `$9C00` fixed bank 23/25 at `$8000`: mask `1E`, PC `$E837/$E839`, **black screen**. - `$A000` fixed bank 23, `$C000` bank 13: mask `1E`, PC `$A241/$A249`, **black screen** at 600 and 1200. - `$A000` bank 23, `$C000` bank 23: same PC/mask; `$C000` not distinguishing. - `$A000` bank 13, `$C000` bank 23: mask `00`, PC `$FB42`. - **Interpretation:** the low five bits of `$A000` are a plausible PRG bank, and bank 23 activates a different loop with PPU enabled, but it is still not a menu. PPU-on/black now points at CHR/name-table data or an early loop, not just the PRG window. - **Evidence:** `OBSERVED`; no detector, no hardware. - **Confidence:** medium for the low-bank clue; low for the exact window. - **Next:** compare CHR/nametable writes at bank 23 with the black screen; inspect PC `$A241/$A249` loop and `$E837`. ## Entry 7 — 2026-11-18 — bank 23 reaches PPU-on copy loop - **Variant:** `$A000` fixed bank 23, `$C000` bank 13, `$8000` bank 0; `$9C00` ignored; `$F800/$5800` clear. - **Result at 600/1200/1800:** - PPU mask `$1E`. - CHR nonzero: 188,212 bytes of 262,144. - CIRAM nonzero: 2,040 bytes; nametable first bytes `00 01 02 03 ...`. - Palette is still `0F` almost everywhere (first 16 bytes all `0F`). - CPU PC is `$A249`, inside a `$2007` copy loop (`$A212` sets PPUADDR, `$A231` writes `$2007`, `$A249` `CMP #$04; BCC $A231`). - **Interpretation:** bank 23 activates real data movement and PPU output, but the palette is black and the screen stays black. This is no longer “no bank/data”; it is an initialization/flow point, likely before the palette upload or while a copy routine is still selecting data. - **Evidence:** `OBSERVED`; no detector, no hardware. - **Confidence:** medium that this is a real game path; low that the bank/window is final. - **Next:** trace the palette/`$2007` writes around the `$A249` loop and check whether `$A000` bank 23 should be a different bank or a CHR/name-table bank. ## Entry 8 — 2026-11-18 — copy loop, zero palette writes - **Variant:** `$A000` bank 23, `$C000` bank 13, `$8000` bank 0; `$9C00` ignored. - **PPU write trace:** 20,000 logged `$2007` writes by frame 600, in the `$2000-$2FFF` nametable ranges; **no writes in `$3F00-$3F1F`** (palette). - **CPU:** `$A236` is the write site; `$A249` is in the loop; `$A212` sets the PPU address. CHR/CIRAM are populated. - **Palette:** first 16 bytes remain `0F`. - **Interpretation:** the copy loop is real, but the palette upload is missing or not reached. The black screen is now explained by the palette, not by absent nametable/CHR data. The bank/flow that should reach the palette routine is still open. - **Evidence:** `OBSERVED`; no detector, no hardware. - **Confidence:** high for no palette writes; medium for the next cause. - **Next:** find the palette routine/caller, and check whether the `$A000` bank 23 copy is using the right source pointer and destination. ## Entry 9 — 2026-11-18 — bank 25 palette, no render - **Question:** does the other low-bank value (`$A000` low = 25) provide the missing palette path? - **Variant:** `$A000` fixed bank 25, `$C000` bank 13, `$8000` bank 0. - **Result at 600/1800/3000:** palette becomes `09 01 00 01 00 02 02 0D 08 10 08 24 00 00 04 2C` (not black); PPU mask stays `$00`; PC `$B998/$B9B4`. It does not enable rendering. - **Bank 23 comparison:** bank 23 enables PPU but has no palette; bank 25 writes a palette but no render. Fixed banks alone do not combine the two behaviors. - **Dynamic `$A000` writes:** mapping `$A000` writes to the `$8000` window and running 600 ends at PC `$02`, mask `$00`, palette `09...`; not a menu. - **Interpretation:** the game likely switches the `$A000` window between initialization (palette) and rendering/copy banks. A fixed bank cannot cover both. The dynamic window/full bank sequence is still missing. - **Evidence:** `OBSERVED`; no detector, no hardware. - **Confidence:** medium that the bank sequence is the missing mechanism; low for the exact selector. - **Next:** trace the sequence of `$A000` values and correlate it with palette writes vs the PPU-enable write; test a windowed/dynamic implementation. ## Entry 10 — 2026-11-18 — dynamic `$A000`/`$9C00` windows - **Question:** does the game need both the bank-23 render/copy state and the bank-25 palette state through a dynamic window? - **Variants at 600 frames:** - `$A000` writes → `$A000` PRG, `$9C00` ignored: mask `0`, palette `09...`, PC `$DBBC`. - `$A000` writes → `$A000` PRG, `$9C00` → `$8000` PRG: mask `0`, palette `09...`, PC `$DBBC`. - `$A000` writes → `$8000` PRG, `$9C00` → `$8000` PRG: mask `0`, palette `09...`, PC `$02`. - `$A000` writes → `$8000` PRG, `$9C00` → `$A000` PRG: mask `0`, palette `09...`, PC `$C935`. - **Interpretation:** dynamic windows can produce the palette but do not enable rendering; fixed bank 23 can enable rendering but has no palette. The overlap window/value is still wrong, or a third register/C000 state is involved. - **Evidence:** `OBSERVED`; no detector, no hardware. - **Confidence:** medium that both banks are involved; low for the selector. - **Next:** log the chronological sequence of `$A000`/`$9C00` values and PPU-mask writes, then align the bank transition with the `$2001` enable. ## Entry 11 — 2026-11-18 — bank 25 + `$9C00` does not merge - **Variants at 600 frames:** `$9C00` writes → `$8000` PRG; `$A000` fixed. - `$A000` bank 25, `$C000` 13: mask `0`, palette `09...`, PC `$C3FB`. - `$A000` bank 23, `$C000` 13: mask `1E`, palette `0F...`, PC `$A249`. - `$A000` bank 25, `$C000` 23: mask `0`, palette `09...`, PC `$FB37`. - **Interpretation:** bank 25 plus `$9C00` still gives only the palette; bank 23 plus `$9C00` still gives only the render path. The bank/mask transition is not explained by `$A000`/`$9C00` alone. - **Evidence:** `OBSERVED`; no detector, no hardware. - **Confidence:** medium that another register/transition is missing. - **Next:** log the chronological bank/mask writes and align the palette state with the `$2001` enable. ## Entry 12 — 2026-11-18 — final bank-window sweep - **Tested:** fixed banks 14 and 29; `$9C00` → `$A000`; and allowing the `$E000/$E800/$EC00` base handlers with banks 23/25. - **Result:** every variant remains non-rendering or loses the render path: - fixed 14/29: palette `09...`, mask `0`, PC `$EE0A`/`$DBBC`. - `$9C00` → `$A000` with banks 23/25: palette `09...`, mask `0`, PC `$C935`. - allow `$E000` with bank 23/25: mask `0`, PC `$FB37`/`$B998`. - **Conclusion:** no single fixed A/9C/E window combines the bank-23 render state with the bank-25/29 palette state. The missing piece is an ordering/transition not yet modeled, or a register outside these windows. - **Next:** stop broad bank sweeps; trace the exact bank/mask sequence on a state where the render succeeds and align the palette state to it. ## Entry 13 — 2026-11-18 — exhaustive A/C bank sweep - **Method:** fixed `$A000` bank 0–31 with `$C000` bank 13; then fixed `$A000` bank 23 with `$C000` bank 0–31; 600 frames, palette/mask/PC. - **A000 sweep:** only bank 4 has both a palette and a mask (`mask 54`, palette `09...`, PC `$A109`), but the frame is a green sprite-only screen, not a menu. Banks 8 and 23 have `mask 1E` with palette `0F`. Every other bank has mask `0` and palette `09...`. - **C000 sweep:** with `$A000` bank 23, every `$C000` bank 0–31 is identical: `mask 1E`, palette `0F`, PC `$A249`. - **Interpretation:** neither `$A000` nor `$C000` alone explains the palette+render combination. The missing transition is chronological or in a different register, not another fixed bank. Stop broad bank sweeps. - **Evidence:** `OBSERVED`; no detector, no hardware. - **Confidence:** high for the sweep result; medium for the remaining transition hypothesis. - **Next:** trace the chronological `$A000`/mask sequence from the bank-23 render state and align the bank-29 palette state to it. ## Entry 14 — 2026-11-18 — bank 4 forced background - **Question:** is bank 4’s palette/mask state a menu with the background deliberately disabled? - **Test:** `$A000` bank 4, `$C000` bank 13; at frame 600 force `PPUMASK=$1E` and capture. - **Result:** still a solid green field with one blue sprite at the top-left; no text/menu appears. - **Interpretation:** bank 4 has palette and sprite data, but not the menu’s background/nametable content. The fixed-bank space is exhausted; the missing piece is not another single A/C bank. - **Evidence:** `OBSERVED`; no detector, no hardware. - **Confidence:** high that this is not the menu. - **Next:** stop bank sweeps; inspect the correct CHR/nametable mapping and the chronological bank/mask transition. ## Entry 15 — 2026-11-18 — forced bank order - **Question:** can the palette and render states be combined by running bank 25 and bank 23 in sequence? - **Tests:** - Bank 25 first (palette `09...`, mask `0`), then switch `$A000` to bank 23: mask `1E`, but the palette is **reset to `0F`**; no menu. - Bank 23 first (mask `1E`, palette `0F`), then switch `$A000` to bank 25: mask `1E` stays, but the palette **stays `0F`**; no menu. - **Interpretation:** neither order preserves both states. The bank-25 palette path does not run when entered after 600 frames, and the bank-23 path overwrites the palette. A plain two-bank switch is not the missing transition. - **Evidence:** `OBSERVED`; no detector, no hardware. - **Confidence:** high that the simple order is insufficient. - **Next:** the remaining path is the true register state machine (a register outside A/9C) or hardware/detector support. Stop forced-order experiments. ## Entry 16 — 2026-11-20 — the licensed original gives the register map (Claude Opus 5.5) - **Environment:** famicom-python `a6c7ae9` (local main) on PyPy 3.11 (`.venv-pypy`), machine `famicom`; No-Intro via `NO_INTRO_DIR`. Second agent: Claude Opus 5.5, reading entries 1-15 first. - **Question:** is this pirate a patched copy of a licensed cart, so that the patches name the registers? - **Dumps:** `Sangokushi II - Haou no Tairiku (Japan)`, mapper 19 (Namco 163), submapper 3, 256 KiB PRG / 256 KiB CHR, against this dump. The same title also exists as `(China) (Ja) (Waixing) (Pirate)` on mapper 176 and as `Sangokushi III - Haou no Tairiku (Asia) (Ja) (Pirate)` on mapper 330; not yet compared. - **Command:** `python tools/diff_dumps.py "$D/Sangokushi II - Haou no Tairiku (Japan).zip" "$D/Sangokushi II - Haou no Tairiku (China) (Ja) (Subor) (Pirate).zip"`. Summary in [evidence/diff-vs-mapper19-summary.txt](evidence/diff-vs-mapper19-summary.txt); the byte listing is the publisher's code and is regenerated, not stored. - **Raw result:** PRG banks in the same order; 27 of 32 identical; 968 bytes differ, 912 of them in bank 31 (109 spans), the rest in banks 11 (43, the copyright text), 15, 25, 29, 30. CHR: 255 of 256 1 KiB banks identical. Stores turned into `BIT`: `$F800` x21 (the 163's sound address port), `$9800` x9, `$B800` x9, `$0062` x1. New routines sit in the original's `$FF` padding at `$F680-$F7FF`. - **Register map, read off the patches** (the 163's meaning from INES_Mapper_019.wiki and from the original's own code: its `$F206` loads CHR from `$AE-$B5`, its NMI loads PRG from `$E1-$E3`): | Namco 163 | Mapper 559 | Job | | --- | --- | --- | | `$E000` | `$8000` | PRG at `$8000` | | `$E800` (value \| `$C0`) | `$A000` | PRG at `$A000` | | `$F000` | `$9C00` | PRG at `$C000`; last 8 KiB fixed | | `$C000/$C800/$D000/$D800` | `$9C0C-$9C0F` | nametables, `$E0`/`$E1` = CIRAM A/B | | `$8000-$B800` (eight 1 KiB CHR) | `$B000-$EC00` step `$400`, each bank written to a pair | CHR | | `$5000/$5800` (15-bit cycle counter, IRQ at `$7FFF`) | `$F000`/`$F400` latch, `$F800` control (2 start, 0 stop + acknowledge) | IRQ | - **The IRQ conversion:** `$F6D0` turns the 163's counter value into a latch for an 8-bit up-counter (`-T2[h]`, table `$F780-$F7FF`) plus a fine busy-wait in 8-cycle units (`(~lo >> 3) + T1[h]`, table `$F700-$F77F`, stored at `$01FF`; the handler at `$FB32` spins it out before `$F800 = 0`). The tables satisfy `(127 - h) * 256 = count * 115 + 8 * fine + r`, `r` in 0..7, for all 128 entries exactly: the converter's author modelled 115 CPU cycles per step. Banks 25/29/30 have their IRQ timing constants adjusted (`LDA #$40` to `#$60`, `#$28` to `#$38`). - **Corrections to entries 1-15:** `$E000-$EC00` are CHR, not PRG; `$F800` is the IRQ control and `$5800` belongs to nothing on this board (the writes the earlier traces counted came from code running in wrong banks); `$9C00` is the `$C000` window (entry 5 tried `$8000`); `$9C0C-$9C0F` are the nametables, not CHR. Entry 6's `$A000 & $1F` was right. - **Model:** [experiments/diff_mapper.py](experiments/diff_mapper.py) (`Subor559`). `$9800 = 1` at reset (where the original wrote `$2001`) is ignored: unknown. - **Result, picture against the licensed cart** in lockstep on famicom-python (its `Namco163` for the original), same inputs (`cmp559` harness, kept outside the repo as a scratch script): title screen at 300 frames; frames 180-480 **identical**; from 540 a constant ~1,220 pixels, which is the pirate's erased "NAMCOT / © 1988 1992 NAMCO LTD. / ALL RIGHTS RESERVED". Into the game (map screen, 4,500 frames): with 115 cycles per step, ~1,800 pixels, single scanlines at y = 32, 64, 96, 128 and the text box, where the IRQ's CHR splits land one line off. - **IRQ fit** (from a save state at 4,400 frames, 60 frames scored, mean differing pixels per frame): step 113: 1,690; **341/3 (one scanline period): 7.0 (worst 45)**; 113.75: 7.6; 114: 30.9; 115: 1,782; 116: 2,303. Starting the prescaler at its last value or asserting at `$FF` instead of on the wrap is worse in every case (2,000-5,800). The residual 7 is the conversion's own: the fine wait has 8-cycle steps. - **Interpretation:** the register map is the conversion's, read from the patches, and the game plays on it. The counter steps once per scanline period, not per 115 cycles: the game's tables were an approximation by whoever converted it. Whether the board counts PPU scanlines (A12, as many pirate ASICs do) or divides M2 is not decided: the two differ only with rendering off. - **Evidence:** the patch contents are a reproducible comparison of two dumps; the meaning of each register is inferred through the 163's documentation (`DOC`, public domain) and `FITTED` by the game running; the counter period is `FITTED` against the licensed cart's picture on famicom-python. No hardware, no detector (Mesen2 and mame_nes refuse 559). - **Confidence:** high for the PRG, nametable and CHR map; medium for the IRQ details; low for `$9800` and for whether the CHR pairs are halves of one value. - **Held-out run:** the fitted model (341/3), a fresh 6,000-frame lockstep run with inputs the fit never saw (beyond 4,400: `DOWN`, `A`, `B` presses reaching the country-selection list). From 4,260 to 6,000 frames, sampled every 60: 0-20 differing pixels, most samples 0-4. - **Next:** a `Subor559` in famicom-python with a register test; compare the Waixing (176) and mapper-330 siblings the same way; `$9800`, the CHR pairs and the counter's clock source stay open. ## Negative results - `first` mapping → `$4010`, mask `$00`. - `bank30` at `$C000` → data at `$DC8F`. - `all13` → RAM at `$074E`. - No hardware, no second emulator, no test ROM; none of the results is `MEASURED` or `TEST ROM`. - Clearing `$F800/$5800` did not reach rendering; it is not yet proven to be the IRQ acknowledgement. ## Current state `experiments/diff_mapper.py` (entry 16) plays the game: title, menu and the map screen, within 0-20 pixels per frame of the licensed mapper-19 cart on famicom-python, the remainder the conversion's own IRQ rounding. `experiments/partial_mapper.py` stays as the record of entries 2-15. Not hardware-verified.