**Closed 2026-11-14: granted upstream as option 1, `System(..., cpu=)` (a2600-python `ae3ad35`, pinned here at `28fb095`).** `mode2600.System2600` is now a subclass of `a2600_python.system.System`, built on the adopted SALLY after the 7800 side runs (docs/status.md, "The a2600-python repin to 28fb095"). The text below is the request as filed. # a2600-python issue 0001: `System(board=)` cannot take a CPU that is already running **For:** a2600-python, at `9475aa1` (docs/api.md, "The board and the console"). **Found by:** a7800-python's repin to `9475aa1`, 2026-11-14. Not worked around: recorded, and the board keeps the shape it had before. ## What the 7800 needs The 7800 enters 2600 mode from a running BIOS: SALLY executes the BIOS, the BIOS writes $FD to INPTCTRL (locked, MARIA off) and then jumps through the cartridge's reset vector. Nothing resets the CPU at that point (DOC: the wiki's BIOS disassembly). So the 2600 board that takes over (`Board(machine, cartridge, tia=, riot=, cycles=)`, which works exactly as documented) must be driven by the CPU object that ran the BIOS, with its registers, its pending instruction and its stall state as they stand. `a2600_python.system.System(cartridge, machine, *, board=None)` builds its own `MOS6507` and calls `power()` (registers from the row's `PowerOn`, then `request_reset()`). A board handed in with `board=` is therefore always started by a fresh, reset 6507. There is no way to hand in an existing CPU, or to skip the power-on. ## What a7800-python does instead (unchanged from before the repin) `a7800_python.mode2600.System2600` is shaped like `System` (`board`, `cpu`, `machine`, `cycles`, `step`, `run_cycles`, `run_frames`, `run_until`) and is what `make_system` returns to the gates as their `system_factory` result, although `gates.SystemFactory` is typed `Callable[[Cartridge, Machine], System]`. Every gate this board runs (`timer_roms`, `serial_tables`, `lockstep`) uses only those attributes, so the gates pass on it; but the type says otherwise, and a future gate that calls something else on `System` would fail here first. For a direct start the two would be equivalent (the 7800's power-on registers and reset sequence are the row's), so the gates could use a real `System` there; the BIOS start cannot. Keeping one class for both starts keeps the gates on the code the BIOS path runs. ## Possible changes (a2600-python's choice) 1. `System(cartridge, machine, *, board=None, cpu=None)`: with `cpu` given, the system adopts it (rewiring its bus callbacks to the board) and does not call `power()`. 2. Or document `System` as a protocol (the attributes the gates use) and type `SystemFactory` against that protocol, so a host's own class is a stated candidate rather than a duck-typed one. Either is fine for this board; it would then use the real `System` (option 1) or keep `System2600` under the protocol (option 2).