Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Format:Neo Geo Pocket ROM image

From ReverseEngineering.wiki
Format
Magic COPYRIGHT BY SNK CORPORATION / ' LICENSED BY SNK CORPORATION' at 0x00
Extensions .ngp, .ngc, .npc
Endianness little
On this wiki Facts · Code · Notes · Topics

Raw dump of a Neo Geo Pocket / Pocket Color cartridge (.ngp, .ngc): the ROM begins with a 64-byte header (28-byte SNK licence string, start address, catalogue id, colour mode byte, 12-byte name) and is mapped at 0x200000 (and 0x800000 for the high flash chip).

Header

The 64-byte header at file offset 0 (Beetle NGP mednafen/ngp/rom.h, RomHeader, packed, little endian):

Offset Size Field
0x00 28 licence string
0x1C 4 start address (u32), entry point
0x20 2 catalogue number
0x22 1 sub-catalogue number
0x23 1 mode: 0x00 monochrome, 0x10 colour
0x24 12 game name (the emulator keeps only bytes 0x20-0x7F)
0x30 16 reserved

The licence string is the ASCII text COPYRIGHT BY SNK CORPORATION (28 characters) on early carts or LICENSED BY SNK CORPORATION (with a leading space, also 28 characters) on later ones. Unverified: the Beetle source only declares licence[28] and never compares it; the two strings are from the common NGP documentation. The console BIOS does check this field.

The mode byte at 0x23 decides colour or mono; Beetle patches three known bad headers by catalogue and sub-catalogue (rom_hack: 0/16 "Neo-Neo!" and 4660/161 "Cool Cool Jam" set mode 0x10, 51/33 "Dokodemo Mahjong" sets 0x00).

Size and mapping

Images are flash chips of 4, 8, 16 Mbit and so on; ares pads smaller homebrew ROMs with 0xFF to 0x80000, 0x100000, 0x200000, 0x280000, 0x300000 or 0x400000 bytes (mia/medium/neo-geo-pocket.cpp, analyze). The first 2 MiB appear at 0x200000-0x3FFFFF; the remainder (a second chip) at 0x800000-0x9FFFFF (Beetle mem.h: ROM_START, HIROM_START).

Related

Platform:Neo Geo Pocket.

Code & repositories

  • https://github.com/libretro/beetle-ngp-libretro @ a50d5ac288a81f2104ddf43195a4efdd15c72227 · license: GPL-2.0 (declared by the contributor; GitHub's detector did not recognize COPYING)
    Mednafen Neo Geo Pocket core: RomHeader struct, memory map, BIOS HLE
    Tested on: source read, not run: read the source, not built · checked 2026-10-18
  • https://github.com/ares-emulator/ares @ 9408cb43d4948fc3ea6e152a307a34348df3fe04 · license: ISC (declared by the contributor; GitHub's detector did not recognize LICENSE)
    Multi-system emulator; its cartridge loaders and databases show header layouts, mapper detection and save types.
    Tested on: source read, not run: source read, not run · checked 2026-10-18