# Cores: what is reused, what each needs, what stays in the board Reuse first (the shared brief): every chip, its existing family core if any, and what that core would need. CPUs get their own core; other chips stay in the board until a second family board needs them (charter, "Cores and boards"). | Chip | Family core | Status | What this board needs from it | | --- | --- | --- | --- | | MC68000 | [m68000-python](../../m68000-python) (PUBLIC, v0.1.0; 6 rungs; WinUAE and Musashi referees) | ready | R1, R2 below; `acknowledge()` returning AUTOVECTOR (has); `reset_devices()` for RESET (has); `step_clocks` inside callbacks (has) | | 6522 VIA | `mos6522-python` (decided as the shared core for the C64/VIC-20/BBC/Apple boards; **not yet created** on 2026-11-26; vectrex-python and apple2-python plan the same) | missing | a core with phase-2 ticks, ports with direction and external pin inputs (PB3-6 inputs, CA1, CA2, CB1, CB2), timer 1 PB7 output, shift register modes driven by an external clock on CB1 (the keyboard), IRQ out; MOS/Rockwell/Synertek rows if they differ | | Intel 8021 (M0110 keyboard), 8048 (M0110A) | [mcs48-python](../../mcs48-python) (lists both) | exists | only for a chip-level keyboard (open decision 3): the 8021's 30-clock machine cycle, port pins for the key matrix and the clock/data lines | | Z8530 SCC | none | — | stays in the board (`scc.py`); candidate for extraction when the IIgs board or another needs it | | NCR 5380 | none | — | stays in the board (`scsi.py`); other users later (Mac II family, Atari TT? not surveyed) | | IWM | none (apple2-python lists it as a later IIc/IIgs row) | — | stays in the board (`iwm.py`); apple2-python's IIc row is the second consumer: open decision 4 | | RTC 343-0040/0042, ASG, video shifter, PAL/BBU glue | none | — | board-only (single machine family) | | ADB transceiver (SE) | none (342S0440-B; MAME HLE) | — | HLE first in the SE row; a PIC16xx core only if the part is confirmed and Aubrey wants LLE (U5) | ## Requests to m68000-python (raised upstream with a repro, as fixes start upstream) - **R1 — stall inside a bus cycle.** The board must delay a RAM access to its slot (up to 4 clocks) and a VIA access to the E clock, and later accesses of the same instruction must see the delay. Today `step_clocks` gives the clock an access ends on and "the host adds its own stall clocks to the step() total" (its `cpu.py`), so the core does not move the following accesses. amiga-python works inside that contract by keeping its own running stall count per step (its handoff brief, "What the board needs"); the Mac board can do the same. **Proposed:** start that way (no core change), and raise R1 only if the bookkeeping proves error-prone: a documented way for a bus callback to return extra wait clocks that the core adds to `_cycles` before the next access. - **R2 — VPA data cycles.** The VIA is a 6800-style device: its accesses wait for the E clock exactly as the autovector acknowledge does (`_e_clock_wait`, MAME's `vpa_sync` + 1, OBSERVED on System 16B). The same request is open from amiga-python (CIA accesses). **Proposed:** one documented helper in m68000-python for VPA data cycles, so neither board duplicates the rule. Repro: the Plus ROM's IFR wait loop, every read on one E phase, 40 clocks an iteration in MAME ([mame-oracle.md](mame-oracle.md)). - Bus errors: no source of /BERR exists on the 128K/512K/Plus (every address is acknowledged); the SE's BBU "monitors data transfers and generates the Bus Error signal" (DOC: GMFH ch. 3), so the SE row may need BERR (the core has it). - TAS: read-modify-write on the Mac bus is not documented as unsupported; use the core's default (`tas_write`) and note U15. ## Other boards sharing this ground - **atarist-python** (Phase 0 running today): a 68000 board with its own bus arbitration (Shifter/MMU, 4-clock slots); R1 and R2 serve it too. - **amiga-python**: made R2 first (its open decision 10). - **apple2-python**: the IWM and the 3.5" drive for the IIc/IIgs; the GCR encoder shares the 6-and-2 idea (the Mac's 3-byte checksum differs). - **x68000-python**: 68000 as well.