# CPU cores, and what this board needs from mcs48-python ## z80-python (main CPU) Pin its current `main` (`1302260`, 2026-11-26; read, not changed). It gives memory and I/O callables, `step()` returning T-states, `request_non_maskable_interrupt()` (the vertical blank NMI), and hardware-captured validation (z80test, ZEXALL). Gaps for this board: 1. **BUSREQ/BUSACK** for the 8257: not in z80-python. The board runs DMA cycles between instructions and charges their time to the CPU ([dma.md](dma.md)); a machine-cycle grant point is a later request only if a trace needs it (open decision 6). 2. **WAIT** (the 8257's READY and any video-RAM contention): none modelled until the sheets show one (U2). ## mcs48-python (sound CPU, MB8884) mcs48-python is at **Phase 0** (no core code; its documents, a pinned MAME source fetch, an instruction-table checker and a working MAME trace recipe **on this very board**: `docs/mame-oracle.md`, 2,406,109 sound-CPU instructions over 460 frames). Its handoff brief already targets Donkey Kong. What this board needs from it, in its own terms: | Need | mcs48-python's plan (its handoff brief) | Status | | --- | --- | --- | | an 8035-type core: romless, 64 bytes of RAM, external program memory (EA high) | one class with RAM size, internal ROM size and opcode table as constructor parameters; MB8884 named | planned (milestones 1-2) | | the host contract: `read_program`, `read_ext` (MOVX), `write_port`(1: the DAC; 2: bank, ROM select, decay), `read_port`(2: P2.5), BUS read (tune latch), `read_t0`, `read_t1` | exactly this contract, fixed in its brief "so hosts can be written in parallel" | planned | | INT as a level (7D80) | `set_int(level)` | planned | | `step()` returning machine cycles (15 clocks each) | yes | planned | | the timer and its prescaler | yes, with the two hardware measurements as its only tier-1 claim | planned (milestone 4) | | evidence on this board's program | its milestone 5: lockstep against MAME's `dkong` sound CPU, a host built from the map above | planned; its trace has no interrupt at all | So this board needs mcs48-python's milestones 1-5 done before its own sound milestone (M4 in the brief); nothing beyond that brief. Two notes for mcs48-python, for its owner to decide: - its brief asks for "Python 3.12+", while the family floor is PyPy's Python 3.11 (Aubrey's rule); the brief predates that rule; - its milestone 5 host and this board's sound board are the same circuit. The core's gate should not depend on this board; this board's sound tests can reuse the core's trace recipe. No code moves between them. ## 6502-python (Donkey Kong 3 only) `RP2A03` exists (decimal mode disconnected; SingleStepTests nes6502: all 2,560,000 cases). Two instances on DK3's board, each with the APU (famicom-python, or an extracted APU core: open decision 4). Pin when the DK3 row comes. ## s2650-python (conversion rows only) Phase 0 tonight (its README); the conversions wait for it.