# CPU cores, and the other chips' cores The chip rule: CPUs get their own core repository; other chips stay in the board until a second family board needs them. This page lists each chip's family cores and what each needs (a socket, a variant, a fix) before proposing anything new. ## The processors | Chip | Where | Family core | State (HEAD) | What it needs | | --- | --- | --- | --- | --- | | **NEC V30** (µPD70116) @ 8 MHz | M72 main (51 sets with M84/M82/M85, M90 bootlegs) | **i8086-python** | Phase 0 only, `6dd7152`; its plan is 8086 first, then a V30 milestone judged by SingleStepTests/v20 (a V20 is the V30's execution unit on an 8-bit bus: V30UM p. 1-1) and then "MAME lockstep on `rtype`" | the V30 variant as planned; NEC clock table (V30UM section 12); the INTR acknowledge callback (exists in its plan); see "One NEC core" below | | **NEC V33** (µPD70136) @ 9 / 10 / 14 MHz | M92, M107 main (54 sets) | none | | a **V33 variant**: V30 instruction set, hardwired timing ("four times the 10-MHz V30", 2-clock bus cycle, VDB91 V33), the address-expansion mode (64 page registers in I/O FF00h-FF7Fh, XAM at FF80h, BRKXA/RETXA, 24-bit physical address: VDB91 V33; MAME maps the same I/O range), the undefined-instruction trap; VDB91's V33 sheet never names BRKEM, so no 8080 mode (U18: confirm from its instruction table) | | **NEC V35** (µPD70330) and **V35 Software Guard** (µPD70337, "V35S") @ 16 / 14.318 MHz input (8 / 7.16 MHz CPU) | M92, M107 sound (46 sets); M90 main (14); late M72 main (5) | none | | a **V35 variant**: the V30 instruction set plus the V25/V35 additions (register banks in internal RAM, BRKCS, TSKSW, MOVSPA, MOVSPB, FINT, STOP, the bit-on-SFR forms: V35INS; no BRKEM, so no 8080 mode), the on-chip peripherals as a SoC module (interrupt controller with macro service, two timers, DMA, two serial channels, ports, the time-base counter, the programmable wait-state generator: VDB91 V35), internal RAM and SFRs at the top of the address space (MAME's `data` space 000-1FF), and for the Software Guard the 256-entry translation table with BRKS/BRKN ([protection.md](protection.md)) | | Zilog Z80 @ 3.579545 MHz | M72/M84/M90 sound | **z80-python** | `1302260` on main | IM 0 with an RST opcode supplied by the host at acknowledge (the "RST interrupt buffer"); NMI if U13 says the sample player uses it; nothing else expected | | Intel 8751 @ 8 MHz (and an 80C31 bootleg) | M72 protection (15 + 1 sets) | none (proposed **mcs51-python** by system16-python) | | the core; this board is its second consumer (System 16 is the first) | | (out of scope) MC6803 | M62 sound | m6800-python (its docs mention the 6803) | | for an M62 repository later | ## One NEC core with variants (recommendation) Proposed: **the V30, V33 and V35 are variants of one core, and that core is i8086-python** (open decision 1). The reasoning: - One execution model. The V33 is "object and source code compatible with the µPD70116 (V30)" (VDB91 V33); the V35 is "fully software compatible with the µPD70108/116 (V20/30)" (VDB91 V35 and the Software Guard sheets). All three use NEC's register names and the V-series extensions (bit instructions, BCD strings, REPC/REPNC, PREPARE/DISPOSE...). Their differences are a clock table, an addressing layer (V33), added instructions and a SoC (V35), and a translation table (V35S): variant rows and modules, not a second ISA. - i8086-python already plans the V30 as a milestone after the 8086, judged by a hardware-captured V20 corpus, and names R-Type as its first board lockstep. Splitting NEC off would duplicate its ModR/M, prefix, string and flag work. - ibmpc-python's Phase 0 (tonight) asks i8086-python for a bus-cycle host interface (its decision 1). The M72 and M92 want the same interface (per-access callbacks with the board's wait states), so both boards push the core the same way. - **The V30MZ stays separate**, as v30mz-python's Phase 0 recommends: it drops the V-series extensions and 8080 mode and has its own pipeline and clock table (NEC PUM 1.3). Revisit a shared decode table only when both cores exist. The alternative, a new `nec-v-python` (V20/V30/V33/V35/V25) beside an Intel-only i8086-python, would be cleaner to name but would copy the 8086 execution model; it is the better choice only if i8086-python stays an instruction-level core while the boards need bus cycles (decision 1's fallback). **Rename?** If the core grows NEC rows, `i8086-python` still describes its instruction set; a rename (`x86-real-python`) is Aubrey's call and not needed. ### What the M72 and M92 need from it, in order 1. The 8086 rungs of its own brief (SingleStepTests/8088, 8086), unchanged. 2. The V30 row (SingleStepTests/v20 v1_native, 360 files, 3,125,000 cases, 0 failed, then NEC clocks from V30UM section 12). **The M72 row starts here.** 3. A per-access bus interface (fetch, data, stack, I/O, interrupt acknowledge), each access told its wait states by the host. The M72 says nothing is contended (i8086-python timing.md), so this is first for the M92/M107 (wait states on ROM, the V33's 2-clock bus) and for ibmpc-python. 4. The V33 row: VDB91 V33 clocks and the address expansion; the BRKXA/RETXA pair; judged by unit tests from VDB91 (tier 2) and by MAME lockstep on `gunforce` (tier 5). No hardware-captured V33 corpus exists that this Phase 0 found (U19). 5. The V35 row: V35INS's added instructions and register banks, the SoC module (the M92 sound program uses the V35's interrupt controller and timers: MAME maps SFR handlers at 100h-1FFh), then the Software Guard table. Judged by VDB91/V35INS (tier 2) and MAME lockstep on `gunforce`'s sound CPU (tier 5). 6. Optional: 8080 emulation mode (V30 only; no Irem game is known to use it). ## The other chips | Chip | Users in the family | Proposal | | --- | --- | --- | | YM2151 | **ym2151-python** (Phase 0 restarted 2026-11-19, `3207328`, no core); cps1-python and system16-python already named as consumers | this board is the third consumer; needs the /IRQ output (M72 Z80 interrupts) and the CT pins checked unused | | µPD71059C (8259-compatible interrupt controller) | ibmpc-python (8259A, Phase 0 tonight: its decision 3 extracts `i8259-python` "when irem-python reaches its interrupt milestone") | **in the board first, then extracted as i8259-python with history** at the M72's interrupt milestone, as ibmpc-python proposes. Evidence: Intel's 8259A data (in the Intel peripheral handbooks on bitsavers, not fetched) and the V53's µPD71059-equivalent ICU (VDB91); the M72 uses ICW1 17h, ICW2 20h, ICW4 0Fh (i8086-python mame-oracle.md trace) | | µPD71011 clock generator | M84 only (M84SCH) | a clock fact, not a device: no model | | Irem GA20 | M92, M107 only | in the board ([sound.md](sound.md)) | | Nanao KNA video chips, Irem GA21/GA22 | M72 family; M92/M107 | in the board ([video.md](video.md)) | | MB8421 dual-port RAM | M72 MCU sets | in the board | | 8-bit DAC | M72, M90 | in the board |