Platform:Neo Geo
| Vendor | SNK |
|---|---|
| Platforms | MVS (arcade), AES (home) |
| Endianness | big (68000), little (Z80) |
| On this wiki | Facts · Code · Notes · Topics |
SNK's Neo Geo (MVS arcade 1990, AES home 1990): a 68000 at 12 MHz plus a Z80 sound CPU with a YM2610, a custom LSPC sprite chip, and cartridges split into P (program), S (fix layer), M (Z80), V (ADPCM) and C (sprite) ROMs.
Hardware
- Main CPU: Motorola 68000 at 12 MHz (24 MHz master clock / 2); sound CPU: Zilog Z80 at 4 MHz (master / 6); sound chip: Yamaha YM2610 at 8 MHz (master / 3); pixel clock 6 MHz (master / 4). Source:
src/mame/snk/neogeo.h. - MVS boards were made as 1, 2, 4 and 6 slot motherboards in several generations (MV-1 to MV-1C; video chipsets PRO-B0/PRO-C0/LSPC-A0, later NEO-B1/LSPC2-A2, NEO-MGA/NEO-GRC, NEO-GRZ). The AES is the home version of the same architecture; it adds memory-card and controller-port mapping at the same addresses. Source: header of
neogeo.cpp.
68000 memory map (MVS)
See the hardware-address facts attached to this page. Summary: 0x000000-0x0FFFFF cartridge P ROM (the first 0x80 bytes, the vectors, come from BIOS or cartridge, selected by a system latch bit), 0x100000-0x10FFFF work RAM, 0x2xxxxx cartridge window (some games have protection devices here), 0x300000 watchdog and test input, 0x320000 sound command out / coin and service in, 0x380000 I/O control and system inputs, 0x3A0000 system latch, 0x3C0000 video registers, 0x400000 palette RAM, 0x800000 memory card, 0xC00000 BIOS ROM (mirrored), 0xD00000 battery-backed save RAM.
Video (LSPC)
The CPU talks to the sprite/tile chip only through registers at 0x3C0000: an address register, a data register that auto-increments by a modulo register, a control register, and timer/interrupt registers. VRAM is 0x8000 words of main space plus 0x800 words of extra space. In MAME's sprite code: the 0x7000 range holds the per-scanline sprite list, 0x8000+n zoom control, 0x8200+n Y position, size (low 6 bits) and chain flag (bit 6), 0x8400+n X position. Palette RAM is two banks of 0x1000 entries chosen by a system latch bit. Reading 0x3C0006 returns the raster line counter in the top bits and a 3-bit animation counter.
Sound
The Z80 gets the 68000's command through a latch (port 0x00) and replies through a second latch (port 0x0C); YM2610 at ports 0x04-0x07; reads of ports 0x08-0x0B select the ROM bank windows of the M ROM (the high byte of the port address is the bank number). Z80 memory: 0x0000-0x7FFF M ROM window, 0x8000-0xF7FF three further switchable windows, 0xF800-0xFFFF RAM.
Cartridge ROM layout
The ROM sets in neogeo.cpp use these regions (file names follow the SNK pattern, e.g. 201-p1.p1 for Metal Slug):
- P (program): 68000 code, loaded with
ROM_LOAD16_WORD_SWAP, i.e. the file holds byte-swapped words relative to memory. In Metal Slug the 2 MiB P file is loaded with its first megabyte at 0x100000 and the second (viaROM_CONTINUE) at 0x000000, so file halves are swapped relative to memory order. Games above 1 MiB reach the upper part through a bank register: in MAMEneogeo.cpp(commit d404316732) the first 1 MiB of P ROM is fixed at 0x000000-0x0FFFFF, 0x200000-0x2FFFFF is a 1 MiB read window (m_bank_cartridge), and a write to 0x2FFFF0-0x2FFFFF (write_banksel) selects the bank: bank = data & 7, mapped from ROM offset (bank + 1) * 0x100000. Banks beyond the ROM size log a warning and fall back to bank 0; ROMs of 1 MiB or less accept no banking. - S (fix layer): text layer tiles, 128 KiB (or 64 KiB); the BIOS carries a default
sfix.sfix. - M (Z80 program): 64/128/256/512 KiB regions in the macros (NEO_BIOS_AUDIO_64K ... 512K).
- V (ADPCM samples): YM2610 sample ROMs; in the Metal Slug set two 4 MiB chips fill the ADPCM-A region.
- C (sprites): chips in pairs loaded with
ROM_LOAD16_BYTE, c1 at even and c2 at odd bytes (the source comments call c1 'Plane 0,1' and c2 'Plane 2,3'); the next pair (c3/c4) starts at 0x800000 in Metal Slug. - BIOS: 68000 BIOS (e.g. sp-s2.sp1 128 KiB; the MV1C sp-45.sp1 is 512 KiB), word-swapped; the Z80 BIOS ROM sm1.sm1 and the fix-layer BIOS sfix.sfix. The cartridge M and S ROMs replace the BIOS ones through the system latch.
Some later cartridges scramble data with chips on the board; that is not documented here.
Container formats
Unverified: the community .neo file (a header with sizes of P, S, M, V and C ROMs followed by the raw ROM data) is used by homebrew tools and emulators; I did not read its specification. Leads: the ngdevkit homebrew SDK and the Neo Geo development wiki.
Sources
mamedev/mame src/mame/snk/neogeo.cpp, neogeo.h, neogeo_v.cpp, neogeo_spr.cpp at d404316732fb5970cc0170aefc69ef1a85e14fce (BSD-3-Clause). The driver credits Charles MacDonald's Neo Geo hardware research. 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