# The Neo Geo Pocket on one page SNK's handhelds: the **Neo Geo Pocket** (NGP, monochrome, Japan 1998-10, Europe 1999) and the **Neo Geo Pocket Color** (NGPC, 1999, later the slimmer "New" NGPC). One board serves both: the colour machine is a revision of the same design (K2GE in place of K1GE, a different 64 KiB BIOS), and runs monochrome cartridges in a compatibility palette. Evidence tags in this repository follow the family methodology: `DOC` (named document), `OBSERVED` (another emulator run or read as a closed or readable box: name and revision), `HYPOTHESIS`. No hardware-tier evidence exists for this machine in the family yet (see [validation.md](validation.md)). ## Parts | Part | What | Family core | Status | | --- | --- | --- | --- | | Main CPU | Toshiba TLCS-900/H core in SNK's custom SoC, 6.144 MHz crystal; on-chip timers, micro DMA, interrupt controller, serial, ADC, watchdog | **new: [tlcs900h-python](../tlcs900h-python)** (Phase 0 tonight) | CPU core repository per the chip rule | | Video | K1GE (NGP) / K2GE (NGPC) "graphics engine + LCD controller", 160x152, two scroll planes and 64 sprites | stays in this board | [k1ge-k2ge.md](k1ge-k2ge.md) | | Sound CPU | Zilog Z80 at 3.072 MHz (half the crystal), 4 KiB shared RAM | [z80-python](../z80-python) (exists; v0.4.0) | embed, no change expected | | PSG | Toshiba T6W28: SN76489-like, stereo, two write ports | [sn76489-python](../sn76489-python) variant, or in-board (open decision) | [sound.md](sound.md) | | DACs | two 8-bit DACs (left, right), written by the main CPU | board | [sound.md](sound.md) | | RTC | BCD clock/calendar in the SoC's I/O window (0x90-0x97) | board | [cartridge-bios-rtc.md](cartridge-bios-rtc.md) | | Cartridge | flash ROM, 4/8/16 Mbit per chip, up to two chips (32 Mbit); saves are written into the flash | board | [cartridge-bios-rtc.md](cartridge-bios-rtc.md) | | BIOS | 64 KiB at 0xFF0000; boot, setup screens, system calls (SWI 1, the FFFE00 table), flash writing, link cable | bring your own, by SHA-1 | [census.md](census.md) | ## Memory map (main CPU, 24-bit) | Range | What | Evidence | | --- | --- | --- | | 000000-0000FF | SoC internal I/O (timers, DMA, serial, ports, interrupt control, RTC at 90-97, Z80 and sound control at B8-BC) | DOC Judge ngpctech.txt; OBSERVED ares `6e67c8b` cpu/io.cpp; MAME 0.285 writes logged | | 004000-006FFF | 12 KiB work RAM; 006C00-006FFF reserved by the BIOS (6FB8-6FFF: the game's interrupt vector table) | DOC ngpctech.txt, tech-11.txt | | 007000-007FFF | 4 KiB RAM shared with the Z80 (its 0000-0FFF) | DOC ngpctech.txt, Mackintosh | | 008000-0087FF | K1GE/K2GE registers (palettes at 8100-83FF, LED at 8400) | DOC tech-11.txt; OBSERVED ares kge/memory.cpp | | 008800-008FFF | sprite (object) VRAM | OBSERVED ares; tech-11.txt | | 009000-009FFF | the two 32x32 scroll maps | as above | | 00A000-00BFFF | character (tile) RAM | as above | | 200000-3FFFFF | cartridge flash, chip 0 (CS0) | DOC ngpctech.txt, tech-11.txt; OBSERVED MAME's unmapped reads at 200000 with no cartridge | | 800000-9FFFFF | cartridge flash, chip 1 (CS1), on 32 Mbit cartridges | DOC tech-11.txt; OBSERVED MAME (unmapped read at 800000) | | FF0000-FFFFFF | BIOS ROM (vectors at FFFF00 up, system-call table at FFFE00) | DOC ngpctech.txt | ares's own header comment writes the first flash window as 0x020000-0x03ffff (a dropped digit; its code tests the real ranges): C3 in [handoff-brief.md](handoff-brief.md). ## Clocks and frame - Crystal 6.144 MHz. MAME 0.285 clocks the main CPU, the K1GE/K2GE and its screen at 6.144 MHz and the Z80 and T6W28 at 3.072 MHz (`mame -listdevices ngpc`). - Frame: 515 clocks per line, 199 lines (152 visible), 59.95 Hz (MAME's screen entry: htotal 515, vtotal 199; ares kge.cpp steps 515 per line, `io.vlines` lines, default 198 + 1). A frame is therefore 102,485 clocks; MAME's 3-frame CPU trace ended at 307,454 cycles (tlcs900h-python docs/mame-oracle.md), which agrees. - What one TLCS-900/H "state" is in crystal clocks on this SoC is not settled by any document in hand (tlcs900h-python U2): Toshiba's 900 data sheets define 1 state as two oscillator clocks (`DOC` TLCS900hv-is, printed p. CPU900-167: "1 state = 100 ns at 20 MHz oscillation"), while MAME and ares count the CPU at 6.144 MHz. The CPU clock is also software-geared (a clock-gear register; ares cpu/io.cpp "rate", default "unconfirmed"). ## Modelling levels (proposed) | Component | Level | Why | | --- | --- | --- | | TLCS-900/H | instruction level with per-bus-access timing (states, prefetch queue charged per access), cycle-level micro DMA | Toshiba documents give per-instruction states and the 4-byte queue; nothing below that is published | | K1GE/K2GE | dot/line level: per-line rendering with mid-line register writes at the dot they land | games change scroll and palettes mid-frame; no die evidence exists | | Z80 | instruction level (z80-python's model) | the sound driver only needs instruction timing and interrupts | | T6W28, DACs | sample level at 3.072 MHz / 32 (96 kHz) | sound may be less exact than pictures (Aubrey 2026-11-13) | | BIOS | **functional by choice only if needed**: the real BIOS is run by default | the BIOS is SNK's code; an HLE BIOS is an open decision (D4) |