# CPU and chip cores: reuse first, then what is new Checked against each sibling's repository on 2026-11-26 (read-only). Boards pin cores by commit; nothing is copied between repositories. ## Reused | Core | State (HEAD) | Role here | What it needs (a socket, a variant, a fix) | | --- | --- | --- | --- | | **z80-python** | `main` at `cc2f794` (v0.4.0 line); the working copy is on branch `retire-polish-brief` `1302260` | main CPU and sound CPU, 4 MHz (2.5 MHz sound on three sets) | **`read_m1(address, kind)`** for every protected set (59 of 92), on branch `m1-fetch-hook-rebased` `5434349`, not on `main`; **a wait-state path** for the sound CPU's PSG writes (READY to /WAIT; its README lists `WAIT` as out of scope); NMI and INT lines; IM 1 only on the main CPU in MAME's run, so no daisy chain is needed yet | | **sn76489-python** | `1379eff` (restarted clean-room 2026-11-12) | two PSGs on the sound CPU | its `SN76489AN` row twice, at 2 and 4 MHz (or 1.25/2.5, 2.5/2.5); READY's 32-clock busy time is documented in its spec and left to the board, which suits this board | | **mcs51-python** | does not exist; proposed by system16-python's Phase 0 (its decision 5) | the 8751 on three System 2 sets | the core itself; this board is its second family user after System 16/18. MCS51 (Intel's manual, pinned here too) is its tier-2 judge | ## Considered and not used - **sms-python**: the SG-1000's Z80 and PSG come from the same cores; its VDP (TMS9918A family) is not System 1's video. Nothing to share beyond the cores ([boards.md](boards.md)). - **The Z80 PIO and the 8255 PPI**: non-CPU chips. The 8255 also sits in system16-python's 16A board, ibmpc-python's PC/XT and msx-python (each in its board today); the Z80 PIO here and, by model2-python's sound.md, on Model 2's Digital Sound Board (with a CTC and an SIO, a later board). Both stay in the board behind pin-shaped classes; the 8255 is a candidate for extraction when a second board builds it (the chip rule; ibmpc-python's Phase 0 discusses the same extraction). ## New None. The protection parts are Z80s with a fetch filter, not new CPUs; the filter is board code behind a socket ([protection.md](protection.md)). ## What to raise on the cores 1. z80-python: merge `read_m1` to `main` (the ColecoVision track and system16-python also wait on it); this board makes it a must for most of its sets. 2. z80-python: a way to add wait states per access (the sound CPU's READY stall). Small, and useful to the SC-3000 too. 3. mcs51-python: a Phase 0 (already proposed by system16-python); add System 2's three sets to its user list.