# CPU core: z80-python The board embeds [z80-python](../../z80-python) (pin its current `main`, `1302260` on 2026-11-26; read, not changed). What it gives (README, `cpu.py`, `_core.py`, read 2026-11-26): memory and optional I/O as callables; `step()` returning T-states; `request_maskable_interrupt(vector_byte)` and `request_non_maskable_interrupt()`; IM 0 (RST only), IM 1 and IM 2 (`I x 256 + vector_byte`, 19 T-states); validated by z80test and ZEXALL (hardware-captured) and SingleStepTests (emulator-derived, including the order of memory accesses). What this board needs, and the gaps: 1. **IM 2 with a board-held vector byte**: exists. One subtlety: z80-python stores the byte when the request is made and clears the request when it accepts it; the hardware's 74LS374 drives whatever it holds **at acknowledge**, and INT is a level the board holds until its enable is cleared. The board therefore (a) re-requests while its interrupt flip-flop is set, and (b) refreshes the request whenever the program writes the latch. Exact as long as the board does both; no core change needed. If a later board needs a true acknowledge callback, that is a request to z80-python (open decision 5), not a board workaround. 2. **Bus timing within an instruction**: z80-python returns T-states per instruction; the order of its memory accesses is checked (SingleStepTests) but their T-state positions are not exposed. The sync-bus controller has no WAIT line ([sync-bus.md](sync-bus.md)), so for milestone 1 the board needs no stalls. If U2 shows a stall, raise a per-access timing callback on z80-python. 3. **Encrypted Z80 (Sega 315-5010)** for four Pengo sets: a decryption table on opcode fetches versus data reads. The board needs to know which reads are opcode fetches. z80-python's `main` has no such hook today (no `read_m1` in its source, 2026-11-26); the separate `z80-python-m1-hook` repository adds `read_m1` to the embedding contract (its log: "Document read_m1 in the embedding contract"). The Pengo rows need that work landed on z80-python's main first (open decision 6; a core change starts upstream). 4. Ms. Pac-Man's auxiliary board carries its own Z80A; the board still has one Z80 (the aux board wraps the CPU's bus), so one core instance. No new core. Siblings' extra cores exist: sn76489-python (SN76496), ay8910-python, s2650-python.