Platform:Sega System 16
| Vendor | Sega |
|---|---|
| Endianness | big (68000), little (Z80) |
| On this wiki | Facts · Code · Notes · Topics |
Sega System 16A/16B (1985-1990): a 68000 main CPU at 10 MHz and a Z80 sound CPU with YM2151 plus uPD7759 or OKI; the 16B board routes the 68000 bus through the 315-5195 memory mapper, and games are defined by interchangeable ROM boards.
Hardware
System 16B (segas16b.cpp): 68000 at 10 MHz (20 MHz crystal / 2), Z80 at 5 MHz, YM2151 FM and a uPD7759 ADPCM player; some boards use a YM2413 or OKI M6295. Many games carry protection (a Hitachi FD1094 CPU, an Intel 8751 MCU or an encrypted Z80); not described here. Games are swapped by exchanging the ROM board; board types are recognised by part number (header comment): 171-5358 takes only 32K/64K ROMs and has no tile banking; 171-5704 and 171-5521 have a tile banking register in region 2; 171-5797 has tile banking in region 1 and only two program ROMs A1/A2 of 128K or more.
68000 address map (System 16B)
The CPU bus goes to the Sega 315-5195 mapper, which relocates regions under program control; the driver sets them up in memory_mapper(). The bootleg map in the driver (fixed, no mapper) shows the usual layout: 0x400000-0x40FFFF tile RAM, 0x410000-0x410FFF text RAM, 0x440000-0x4407FF sprite RAM, 0x500000 work RAM, 0x840000-0x840FFF palette RAM, 0xC40000 custom I/O. On the real boards the 315-5195 mapper registers decide where each region sits, so the bootleg addresses above are only the common layout. memory_mapper() (segas16b.cpp, commit d404316732) creates the regions by mapper index: 7 = 16 KiB of I/O (0x4000 bytes), 6 = palette RAM 0x1000 bytes, 5 = tile RAM 0x10000 plus text RAM 0x1000, 4 = sprite RAM 0x800, 3 = work RAM (16 KiB or 256 KiB), 2 = third ROM base or board-specific banking, 0 = first program ROM base (0x20000, 0x40000 or 0x80000 bytes depending on the ROM board).
Z80 map
0x0000-0x7FFF ROM, 0x8000-0xDFFF banked ROM (soundbank), 0xE800 reads a command from the mapper, 0xF800-0xFFFF RAM. I/O ports: 0x00-0x01 YM2151, 0x40 uPD7759 control, 0x80 uPD7759 data write / status read, 0xC0 command read from the mapper.
ROM set layout (example: Golden Axe goldnaxe)
- Program: two 256 KiB chips with
ROM_LOAD16_BYTE: ic2 at even offsets and ic1 at odd offsets of the 512 KiB "maincpu" region. - Tiles: three 128 KiB chips loaded consecutively in region "tiles" (the three chips are the three bitplanes of the 8x8 tile format - Unverified).
- Sprites: region "sprites" 0x1C0000, 16-bit big endian; chips in pairs with
ROM_LOAD16_BYTE, each chip's second 128 KiB half placed 0x100000 further withROM_CONTINUE. - Sound: Z80 code 32 KiB at 0 and a 128 KiB ROM at 0x10000 (banked sample/data); an MCU region with the 4 KiB 8751 ROM and a PLD region.
Sources
mamedev/mame src/mame/sega/segas16b.cpp at d404316732fb5970cc0170aefc69ef1a85e14fce. System 16A is in segas16a.cpp, Out Run in segaorun.cpp. See Tool:MAME.
Code & repositories
- https://github.com/mamedev/mame @
d404316732fb5970cc0170aefc69ef1a85e14fce· license: GPL-2.0-or-later AND BSD-3-Clause (declared by the contributor for the files used; GitHub reports Zlib (read from COPYING; GitHub's detector did not classify it) for the repository)
MAME emulator; src/mame/<maker>/*.cpp drivers document arcade memory maps and ROM sets
Tested on: source read, not run: read the driver sources · checked 2026-10-18; last activity 2026-10-18; Note: the latest release ships binaries; the wiki links only the source, never the binaries