# CPU core: i8080-python The board embeds [i8080-python](../../i8080-python) (pin its current `main`, `944cbd7` on 2026-11-26; read, not changed, by this Phase 0). What it already gives (its README and docs, read 2026-11-26): | Board need | i8080-python | | --- | --- | | Memory as two callables, I/O as two more | yes: `I8080CPU(read_byte, write_byte, *, read_port=..., write_port=...)`; unconnected `IN` reads 0xFF | | `step()` returning states | yes; Intel's documented state counts | | INT with an instruction on the data bus at acknowledge | yes, **one-byte instructions only** (the 8228's three-byte `CALL` is refused): exactly what this board needs (`RST 1`, `RST 2`) | | Interrupt lifecycle (INTE, EI delay, HLT wake) | yes: rung 4, 18 tests against Intel's manuals | | Hardware evidence | 8080EXM: all 25 CRCs from 13 real 8080A chips (tier 1 for the instruction set) | | Already run on this board's program | rung 5: MAME lockstep on `invaders`, 60 frames, 230,313 instructions and 102 interrupt acceptances identical (tier 5 detector) | So the core needs **nothing new** for milestone 1. Points to watch: 1. **Bus-cycle timing.** i8080-python is an instruction core: it returns a state count, not a list of machine cycles with their addresses. The charter's x-rust proof is "every bus cycle identical"; for this board the observable bus events are memory and I/O accesses within an instruction. If the board needs a write's exact state (a video RAM write landing mid-line), the board can place accesses from Intel's machine cycle table, or the core can grow a per-machine-cycle callback. Recommendation: the board places each access at the instruction's end for milestone 1 and records it as a known coarseness (FITTED); raise "per-machine-cycle bus callbacks" on i8080-python only if a picture difference is traced to it (open decision 5). 2. **TMS8080A.** The Taito board's part is TI's second source (start-here.md). No difference from Intel's 8080A is documented in what we hold (U2). 3. **Halt idle and RESET state counts** are modelling choices in i8080-python (its README). Space Invaders does not halt; RESET happens once. No other CPU is needed for the first rows. Siblings: m6800-python for `invrvnge`'s MC6802.