# Start here `system16-python` will be the Sega System 16 board (Pre-System 16 and 16A, 16B; System 18 later) as a readable Python specification. Phase 0 (2026-11-26) left documents, pinned references, a census and a MAME recipe; there is no package yet. ## In five minutes - A **68000 at 10 MHz** runs the game (CM16B §1); a **Z80** runs the sound with a **YM2151** and a sample chip: the **uPD7759** on 16B (fed byte by byte by the Z80's NMI handler) or a **uPD7751** (an MCS-48-class part) on 16A (CMSND, CMP16). - **16A** decodes a fixed map (ROM at 0, tiles at 0x400000, sprites at 0x440000, palette at 0x840000, I/O at 0xC40000, work RAM at 0xFFC000) and talks to the Z80 through an **8255**; **16B** puts the **315-5195** mapper in front of the 68000: eight programmable regions, register writes that halt or reset the CPU or send a sound command, open bus equal to the last prefetched word (CMP16, CM16B §2). - The video is two 128 x 64 tile layers with row and column scroll, a text layer, and 128 strip-built sprites (315-5196) with end markers, zoom and a write-back of the end address; 2,048 colour entries of 15 bits plus a shade bit, shadow/highlight via palette 63 (CM16B §3-§8). - Protection: **FD1089A/B** and **FD1094** encrypted 68000s (keys in battery RAM), an **MC-8123** encrypted Z80 on six sets, and an **Intel 8751** MCU that can hold the 68000 and drive its interrupts ([protection.md](protection.md)). - MAME 0.285 lists **297 machines** in the family's driver files; every zip in `$MAME_ROMPATH` is complete ([census.md](census.md)). MAME's FD1094 Golden Axe and its decrypted set produce identical traces ([mame-oracle.md](mame-oracle.md)). - Speed is not a problem past Python: **1.8 M CPU instructions a second** for a 16B board with an MCU; plain Rust is real time everywhere, `recompile: none` ([domains-and-speed.md](domains-and-speed.md)). ## Tags used in every document DOC (a document; for MacDonald's notes, facts he tested on a board), MEASURED (an instrument on real hardware, by the person named), OBSERVED (MAME, a detector), FITTED, HYPOTHESIS. Short source names (CM16B, CMSND, CMP16, CM18, CM5797, D7759, DS7759, DS775X, UM7756, NEC89, D7751, MCS51, AHFD, JT16, JT16B, JT18, JTOR) are defined in [sources.md](sources.md). ## Setting up ```sh python -I scripts/fetch_references.py # 17 pinned documents into reference/ (git-ignored) export MAME_ROMPATH=... # your non-merged MAME 0.285 sets (the family's profile sets it) python -I scripts/census.py # 13 s; reference/census/machines.tsv python -I scripts/mame_trace.py shinobi --frames 3 ``` Then read [handoff-brief.md](handoff-brief.md).