# The boards: System 1, System 2, and how MAME groups them ## What is known, and from where There is **no tier 1-3 document in hand for this board family**. Charles MacDonald's notes (his System 16, 18, 24 and 32 notes are the family's tier-3 sources elsewhere) are set aside here because their host's robots.txt disallows the folder to every crawler ([sources.md](sources.md)); whether he wrote System 1 notes is therefore not checked. system16.com, the usual board-photo and parts reference, blocks AI crawlers in its robots.txt and is set aside too. What follows comes from MAME 0.285 as a closed box (device lists, ROM layouts, screen parameters, and traces: OBSERVED, tier 5), from the manufacturers' chip manuals (tier 2), and from the MiSTer core's README (tier 4, a game list). ## System 1 and System 2 The census ([census.md](census.md)) sorts MAME's 92 machines into four groups by the I/O chip MAME fits and the tile-ROM size: | Group | Machines | MAME's devices | Reading (HYPOTHESIS until a board document is in hand) | | --- | ---: | --- | --- | | `ppi-small` | 25 | 8255 PPI, 48 KB tiles, colour from RAM (1 set with PROMs) | the 1983-84 System 1 boards (Star Jacker, Regulus, Up'n Down, Mister Viking, SWAT, Water Match) and later sets on that wiring | | `pio-small` | 40 | Z80 PIO, 48 KB tiles | the 1984-86 System 1 boards (Flicky 128k, Pitfall II, Sega Ninja, TeddyBoy Blues, Wonder Boy set 1, 4-D Warriors) | | `pio-big` | 1 | Z80 PIO, 96 KB tiles, colour PROMs | Heavy Metal | | `ppi-big` | 26 | 8255 PPI, 96 KB tiles, colour PROMs (all 26) | **System 2**: MAME names its `wboysys2` sets "system 2" and they are here; Choplifter, Shooting Master, Noboranka, Monster Land, Ufo Senshi, Dakko-Chan House, Toki no Senshi | Two board facts follow from MAME's lists and want a board document to confirm: System 2 doubles the tile ROM (96 KB) and always uses colour PROMs (768 bytes, three 256-entry PROMs: HYPOTHESIS from the size), and the 8751 appears only on System 2 sets. The MiSTer core (tier 4) implements 18 System 1 titles and lists Choplifter, Gardia and Noboranka as "not yet" (MRSYS1), which agrees with those three needing something the rest do not. Brain is in `pio-small` but has colour PROMs and 96 KB of program; Gardia's sets straddle `pio-small` (`gardia`) and `ppi-big` (`gardiaj`): MAME groups by its machine configurations, which are not necessarily Sega's board revisions (U1). ## Clocks and the screen (MAME's figures, OBSERVED) | Item | MAME | Notes | | --- | --- | --- | | main Z80 | 4.00 MHz | every set | | sound Z80 | 4.00 MHz (89 sets), 2.50 MHz (Star Jacker, Up'n Down) | | | PSGs | two SN76489A: 2 + 4 MHz (84 sets); 2 + 2 (5); 1.25 + 2.5 (2); 2.5 + 2.5 (1) | [sound.md](sound.md) | | Z80 PIO | 20.00 MHz device clock | suggests a 20 MHz master crystal, divided by 5 for the CPU and by 2 for the pixel clock (HYPOTHESIS) | | 8751 | 8.00 MHz (666,667 machine cycles a second) | three System 2 sets | | screen | pixel clock 10 MHz; 640 x 260 total; 512 x 224 visible; 60.096154 Hz | 10,000,000 / (640 x 260) = 60.096 Hz. The main Z80's interrupt arrives every 66,552-66,570 cycles in MAME's trace (4 MHz / 66,560 = 60.096 Hz) | No measured frame rate or crystal list was found for System 1 (U3). ## Main CPU memory map (OBSERVED on `wboyu`, a `pio-small` set, 60 frames) | Range | Seen | Reading | | --- | --- | --- | | 0x0000-0xBFFF | execution from 0x0000; the program ROMs are 48 KB on this set (MAME region `maincpu`) | program ROM; System 2 sets have 96 KB of program, so a bank window exists there (U5) | | 0xC000-0xCFFF | 12,823 writes | work RAM (the stack pointer sits at 0xC7FE-0xC7FA) | | 0xD000-0xD3FF | 272 writes | sprite RAM (HYPOTHESIS) | | 0xD800-0xDFFF | 1,885 writes | palette RAM on a set without colour PROMs (HYPOTHESIS) | | 0xE000-0xEFFF | 8,415 writes | tile RAM (HYPOTHESIS) | | 0xF000-0xFFFF | none in 60 frames | (collision or other registers: U5) | ## Main CPU ports (OBSERVED on `wboyu`) | Port | Seen | Reading | | --- | --- | --- | | 0x00, 0x04, 0x08 | read once a frame | player and system inputs (HYPOTHESIS) | | 0x0C, 0x10 | read once at start | DIP switches (HYPOTHESIS) | | 0x18 | written once (when the attract mode makes a sound) | the PIO's port A: the sound command (HYPOTHESIS; the sound Z80 takes one NMI in the same run) | | 0x19 | written once a frame | the PIO's port B: a video control byte (HYPOTHESIS) | | 0x1A, 0x1B | written at start (2 and 3 times) | the PIO's control registers | The Z80 PIO's register order by address (A0, A1 to B/A and C/D select) depends on the board's wiring (UMPIO: the PIO has separate port-select and control/data inputs) and is U2. The main CPU takes **IM 1 interrupts only** in this run (every entry is at 0x0038): no PIO interrupt and no daisy chain is exercised. ## Sound CPU map (OBSERVED on `wboyu`) RAM at 0x8000-0x87FF (stack at 0x87FE), PSG writes at 0xA000 and 0xC000 (1,302 each in 60 frames), no I/O ports; where it reads the sound command is not yet observed (U4). See [sound.md](sound.md). ## Relatives in the family - **sms-python's SG-1000** is the console era-mate: a Z80 at 3.58 MHz, one SN76489, a TMS9918A-family VDP, 1 KB of RAM (sms-python's docs). Sega ported several System 1 games to it (Flicky is in sms-python's MAME lockstep gate, `sg1000`, 7.7 M instructions). The boards share the Z80 and the PSG family and nothing else: System 1's video is Sega's own discrete tile and sprite hardware, not a TMS9918, and its PSG is the discrete SN76489A (READY wired) where the Mark III and Master System use the PSG inside Sega's VDP. A cart port and an arcade port of the same game are a useful comparison for game logic, never for hardware. - **system16-python** shares the MC-8123 (sound CPU there), the 8751 and Sega's habit of a second bus master holding the CPU at power-on.