Appendix: SNES Address & Register Map
A single-page reference for every hardware address this course actually touches, organized the way the lessons introduced it rather than dumped alphabetically. Cross-checked against the same code shown in each lesson, not transcribed from memory — if a value here ever disagrees with a lesson’s own code, the lesson’s code is correct and this page has a bug worth reporting.
Three address spaces, not one
It’s easy to assume “the address space” is one thing. This course actually works across three separate ones, and mixing them up is a real source of confusion:
| 65816 CPU space |
The main CPU — everything through Lesson 12 |
Lesson 3 |
| SPC700 / ARAM space |
The sound co-processor’s own 64 KB RAM, reachable only through 4 mail-slot bytes |
Lesson 13 |
| DSP register space |
The audio chip’s 128 one-byte registers, reachable only through the SPC700 boot ROM’s $00F2 trick |
Lesson 13 |
Every table below is 65816 CPU space unless its heading says otherwise.
Memory map: sizes & boundaries
Six fixed-size memory pools this course touches, each a separate physical resource — knowing the size of each one explains why VRAM comfortably fits a course’s worth of tiles and tilemaps, why OAM caps out at 128 sprites, and why a palette can’t hold more than 256 colors.
| WRAM |
128 KB |
$7E0000-$7FFFFF (full chip); first 8 KB mirrored at $0000-$1FFF in every bank’s low page |
Variables, the stack, general-purpose scratch |
Lesson 3 |
| VRAM |
64 KB |
word address $0000-$7FFF, reached via VMADDL/VMADDH |
Tile (character) bitmap data and tilemaps — this course’s tiles and BG3 tilemap both live here, at addresses you choose |
Lesson 5, Lesson 6 |
| CGRAM |
512 bytes |
index $00-$FF via CGADD (each index = 2 bytes) |
256 colors, organized as 16 palettes of 16 colors, 15-bit color each |
Lesson 4 |
| OAM |
544 bytes |
low table: byte $000-$1FF (512 bytes); high table: byte $200-$21F (32 bytes), via OAMADDL/OAMADDH |
Up to 128 sprites — X/Y/tile/attributes in the low table (4 bytes each), size + X-high-bit in the high table (2 bits each) |
Lesson 10 |
| ARAM (SPC700 RAM) |
64 KB |
$0000-$FFFF on the SPC700’s own bus — not reachable directly from the 65816 |
Sound driver code, sample data, echo buffer, loaded byte-by-byte through the 4 APU mail-slot ports |
Lesson 13 |
| ROM (LoROM mapping) |
up to 4 MB addressable (this course’s own ROMs use far less) |
banks $00-$7D and $80-$FF, each exposing 32 KB at $8000-$FFFF |
Program code, the header & vectors, and any other ROM data |
Lesson 1, Lesson 3 |
VRAM, CGRAM, and OAM aren’t part of the 65816’s own address space — they’re separate chips on the PPU side, reachable only through the port registers documented below ($2115-$2119 for VRAM, $2121-$2122 for CGRAM, $2101-$2104 for OAM).
The exact byte layout Lesson 1’s lesson1.asm builds, field by field:
$FFC0-$FFD4 |
ROM title |
21 |
Space-padded ASCII, cosmetic only |
$FFD5 |
Map mode |
1 |
LoROM/HiROM + fast/slow ROM bit |
$FFD6 |
Cartridge type |
1 |
$00 = ROM only, this course’s ROMs |
$FFD7 |
ROM size |
1 |
2^n KB |
$FFD8 |
RAM size |
1 |
$00 here — no cartridge RAM used |
$FFD9 |
Region / destination code |
1 |
Cosmetic in an emulator |
$FFDA |
Fixed / licensee byte |
1 |
|
$FFDB |
ROM version |
1 |
|
$FFDC-$FFDD |
Checksum complement |
2 |
Placeholder ($0000) throughout this course |
$FFDE-$FFDF |
Checksum |
2 |
Placeholder ($0000) throughout this course |
$FFE0-$FFE1 |
unused (native) |
2 |
|
$FFE2-$FFE3 |
unused (native) |
2 |
|
$FFE4-$FFE5 |
COP vector (native) |
2 |
→ trap |
$FFE6-$FFE7 |
BRK vector (native) |
2 |
→ trap |
$FFE8-$FFE9 |
ABORT vector (native) |
2 |
→ trap |
$FFEA-$FFEB |
NMI vector (native) |
2 |
→ trap until Lesson 11 wires up nmi_handler |
$FFEC-$FFED |
unused (reserved) |
2 |
|
$FFEE-$FFEF |
IRQ vector (native) |
2 |
→ trap |
$FFF0-$FFF1 |
unused (emulation) |
2 |
|
$FFF2-$FFF3 |
unused (emulation) |
2 |
|
$FFF4-$FFF5 |
COP vector (emulation) |
2 |
→ trap |
$FFF6-$FFF7 |
unused (reserved) |
2 |
|
$FFF8-$FFF9 |
ABORT vector (emulation) |
2 |
→ trap |
$FFFA-$FFFB |
NMI vector (emulation) |
2 |
→ trap |
$FFFC-$FFFD |
RESET vector (emulation) |
2 |
→ reset — the only vector every ROM in this course actually depends on at power-on, and the 65816’s well-known real hardware RESET location |
$FFFE-$FFFF |
IRQ/BRK vector (emulation) |
2 |
→ trap |
WRAM — general-purpose RAM
$0000-$1FFF |
First 8 KB of WRAM, mirrored into every bank’s low page ($00-$3F, $80-$BF) — where direct-page variables and the stack live |
Lesson 3 |
$7E0000-$7FFFFF |
The full 128 KB WRAM chip, reachable by long address from any bank |
Lesson 3 |
$2180 WMDATA |
Indirect WRAM data port — read/write one byte at the address below, auto-incrementing |
Lesson 3 |
$2181-$2183 WMADDL/WMADDM/WMADDH |
17-bit WRAM address for the port above |
Lesson 3 |
VRAM — tile & tilemap data ($2115-$2119)
$2115 |
VMAIN |
Address-increment mode (after low or high byte, step size) |
Lesson 5 |
$2116 |
VMADDL |
VRAM word address, low byte |
Lesson 5 |
$2117 |
VMADDH |
VRAM word address, high byte |
Lesson 5 |
$2118 |
VMDATAL |
VRAM data, low byte — write triggers the transfer for VMAIN’s “low” mode |
Lesson 5 |
$2119 |
VMDATAH |
VRAM data, high byte — write triggers the transfer for VMAIN’s default “high” mode |
Lesson 5 |
CGRAM — the color palette ($2121-$2122)
OAM — sprite attributes ($2101-$2104)
$2101 |
OBSEL |
Sprite size selection + VRAM base address for sprite tiles |
Lesson 10 |
$2102 |
OAMADDL |
OAM address, low byte |
Lesson 10 |
$2103 |
OAMADDH |
OAM address high bit + priority-rotation flag |
Lesson 10 |
$2104 |
OAMDATA |
OAM data — auto-increments; low table then high table roll together in one write stream |
Lesson 10 |
PPU control registers actually used (within $2100-$2133)
$2100 |
INIDISP |
Forced blank (bit 7) + screen brightness (low nibble) |
Lesson 1 |
$2105 |
BGMODE |
Background mode selection (this course uses Mode 1) |
Lesson 6 |
$2109 |
BG3SC |
BG3 tilemap base address + map size |
Lesson 6 |
$210C |
BG34NBA |
BG3/BG4 character (tile) data base address |
Lesson 6 |
$2111 |
BG3HOFS |
BG3 horizontal scroll — write-twice register |
Lesson 9 |
$2112 |
BG3VOFS |
BG3 vertical scroll — write-twice register |
Lesson 9 |
$212C |
TM |
Enable background/sprite layers on the main screen |
Lesson 6 |
$212D |
TS |
Same bit layout as TM, for the subscreen (color-math, not used in this course) |
Lesson 6 exercises |
The full $2100-$2133 block covers many more registers this course doesn’t use directly (mode 7, windowing, color math) — see Lesson 3 for the general map and the register reference for all of them.
CPU control, status & joypad ($4200-$421F)
$4200 |
NMITIMEN |
Enable NMI + enable auto-joypad read |
Lesson 11 |
$420B |
MDMAEN |
Fire one or more general-purpose DMA channels |
Lesson 8 |
$420C |
HDMAEN |
Enable one or more HDMA channels |
Lesson 8 |
$4210 |
RDNMI |
NMI flag — must be read inside every NMI handler to acknowledge it |
Lesson 11 |
$4212 |
HVBJOY |
V-Blank/H-Blank status, polled by the pre-NMI frame loop |
Lesson 9 |
$4218 |
JOY1L |
Latched controller 1 buttons, low byte (A/X/L/R) |
Lesson 11 |
$4219 |
JOY1H |
Latched controller 1 buttons, high byte (B/Y/Select/Start/D-pad) |
Lesson 11 |
$4016-$4017 |
old-style joypad ports |
NES-compatible manual polling; mentioned but not used — auto-joypad read replaces this |
Lesson 3 |
DMA & HDMA channel registers ($43x0-$43xA, one block per channel x = 0-7)
$43x0 |
DMAPx |
Direction, addressing mode, transfer-unit shape, fixed-source bit |
Lesson 8 |
$43x1 |
BBADx |
Destination: low byte of the $21xx PPU register to target |
Lesson 8 |
$43x2-$43x3 |
A1TxL/A1TxH |
Source address, low/high byte |
Lesson 8 |
$43x4 |
A1Bx |
Source address, bank byte |
Lesson 8 |
$43x5-$43x6 |
DASxL/DASxH |
DMA byte count — or, for indirect HDMA, the current indirect-data address |
Lesson 8 |
$43x7 |
DASBx |
Indirect HDMA address bank byte (indirect mode only, not used in this course) |
Lesson 8 exercises |
$43x8-$43x9 |
A2AxL/A2AxH |
HDMA’s current position in its table — hardware-managed, not written directly |
Lesson 8 |
$43xA |
NLTRx |
HDMA line counter: scanlines remaining until the next table entry loads |
Lesson 8 |
Audio: APU ports (65816 side) — $2140-$2143
$2140-$2143 |
APUIO0-APUIO3 |
Four one-byte mail-slot ports to the SPC700 — the only connection between the two CPUs |
Lesson 13 |
The SPC700 sees the same four ports at $00F4-$00F7 on its own side — same bytes, different address, because it’s a different CPU with a different memory map entirely.
Audio: DSP registers (a separate 128-register space, reached via $00F2)
Not part of the 65816’s memory map at all — these are written by targeting SPC upload address $00F2 with the boot ROM’s manual-DSP trick, one (register, value) pair per write_dsp call. Register numbers below are for voice 0; Lesson 14 reaches voice n by adding n * $10 to each per-voice register number.
$4C |
KON |
Key-on — one bit per voice (0-7) |
Lesson 13 |
$5C |
KOFF |
Key-off — one bit per voice; needed before a fresh KON to restart an already-playing voice |
Lesson 13, Lesson 14 |
$6C |
FLG |
Global flags (echo-buffer write protect, etc.) |
Lesson 13 |
$5D |
DIR |
Sample directory’s ARAM page |
Lesson 13 |
$0C/$1C |
MVOLL/MVOLR |
Master volume, left/right |
Lesson 13 |
$00/$01 |
VOLL/VOLR (voice 0) |
Per-voice volume, left/right |
Lesson 13 |
$02/$03 |
PITCHL/PITCHH (voice 0) |
Playback rate — $1000 plays a sample at its recorded pitch |
Lesson 13 |
$04 |
SRCN (voice 0) |
Which sample-directory entry this voice plays |
Lesson 13 |
$05/$06 |
ADSR1/ADSR2 (voice 0) |
Volume envelope: attack/decay (ADSR1), sustain level/rate (ADSR2) |
Lesson 13, Lesson 14 exercises |
Sources & further reading
This course’s claims about hardware behavior are checked against primary references, not half-remembered folklore. Every external source cited across the 16 lessons, and where each one comes up:
The main hardware reference this course leans on hardest.
| Registers |
Every PPU/CPU hardware register, bit by bit — this tutorial’s register explanations are all cross-checked against it, and it’s the single most useful tab to keep open while working through the course |
Lesson 3 (general), 4, 6, 8, 10, 11 |
| Backgrounds |
BG modes, tilemap format, scrolling behavior |
Lesson 5, 6, 9 |
| Sprites |
OAM layout, the character-table wrapping rules for multi-tile sprites |
Lesson 10 |
| 65816 Reference |
Full CPU instruction set |
Lesson 2 |
| SPC700 Reference |
Sound CPU instruction set, ADSR envelope bit layout |
Lesson 13, 14 |
| Memory Mapping |
LoROM/HiROM layout details |
Lesson 3 |
| “Writing to DSP Registers Without any SPC-700 Code” |
The manual-DSP-write trick Lesson 13’s write_dsp code is directly based on |
Lesson 13 |
SNESdev Wiki
Other references
What’s deliberately not here
This page is hardware facts — SNES-defined registers and memory regions that stay the same no matter what ROM you write. It doesn’t include this course’s own direct-page variable choices (sprite_x, scroll_lo, wall_x, and so on, first assigned in Lesson 9 and Lesson 11) — those are this tutorial’s own example code, not SNES architecture, and a different project is free to lay them out differently.
Home | Previous: Lesson 16 — Capstone project