# Memory map | Range | What | Source | | --- | --- | --- | | `$0000-$7FFF` | cartridge ROM; flat, or banked by the cartridge (cartridges.md). **Entry point `$0000`** (the Game Boy's is `$0100`) | MDI; census: all 25 NI images start `F3 C3` (DI; JP) or `C3` (JP) at `$0000` | | `$8000-$9FFF` | VRAM | HWINC | | `$A000-$BFFF` | cartridge RAM where a cartridge has it (only the laptop's MD0 memory card, and homebrew mappers); `$B000` is also MD1's bank register (a write) | MDI, SR | | `$C000-$DFFF` | WRAM 8 KB | HWINC | | `$E000-$FDFF` | echo of WRAM on the DMG; not described for the Duck | U6 | | `$FE00-$FE9F` | OAM | HWINC | | `$FF00-$FF7F` | I/O (registers.md) | MDI, HWINC | | `$FF80-$FFFE` | HRAM | HWINC | | `$FFFF` | IE | HWINC | ## Start-up (MDI "Programming") - **No boot ROM**: the CPU starts at `$0000` in the cartridge. No logo check, no header, no checksum. - Registers AF, BC, DE, HL, SP are "random at startup ... with some affinity toward `0xFFFF` / `0x0000`" on the handheld (MDI: OBSERVED by its contributors; no measurement). MAME starts PC and SP at 0 (OBSERVED, first trace line `0 0 0`). - VRAM is not cleared ("consistent random data" on handhelds). The laptop's system ROM leaves its font in VRAM when it launches a cartridge. - So the board has no skip-boot state to fit: power-on is the documented state, with the register and RAM contents a board option (zeros by default, "random" seeded on request; decision 4). ## Interrupts Vectors and IF/IE as on the DMG (`$0040` VBlank, `$0048` STAT, `$0050` timer, `$0058` serial, `$0060` joypad): HWINC defines IF/IE at the DMG's addresses, and the games agree (OBSERVED 2026-11-26, the bytes at the vectors of all 25 NI images, read in place): every image has a handler (`DI; CALL` or `JP`) at `$0040`, most at `$0048` and `$0050`, and `RETI` (`D9`) at the vectors it does not use. No document states the vectors; the games are the evidence (TEST ROM in the weak sense: they ran on units). The restart vectors `$0000-$0038` share space with the entry point: Duck games put their start-up code at `$0000` and jump over the RST area.