Complete reference for all SNES hardware registers commonly used in game development.
Every register this page names, and the ones it does not detail, by address.
| Address | Name | Description |
|---|---|---|
| $2100 | INIDISP | Display control |
| $2101 | OBJSEL | Sprite settings |
| $2102-03 | OAMADDL/H | OAM address |
| $2104 | OAMDATA | OAM data write |
| $2105 | BGMODE | BG mode and tile size |
| $2106 | MOSAIC | Mosaic effect |
| $2107-0A | BGnSC | BG tilemap addresses |
| $210B-0C | BGnNBA | BG tile data addresses |
| $210D-14 | BGnHOFS/VOFS | BG scroll positions |
| $2115 | VMAIN | VRAM address increment |
| $2116-17 | VMADDL/H | VRAM address |
| $2118-19 | VMDATAL/H | VRAM data write |
| $211A | M7SEL | Mode 7 settings |
| $211B-20 | M7A-D/X/Y | Mode 7 matrix |
| $2121 | CGADD | CGRAM address |
| $2122 | CGDATA | CGRAM data write |
| $212C-2D | TM/TS | Main/sub screen enable |
| $212E-2F | TMW/TSW | Window masks |
| $2130-32 | CGWSEL/CGADSUB/COLDATA | Colour math |
| $2133 | SETINI | Screen settings |
| Address | Name | Description |
|---|---|---|
| $4200 | NMITIMEN | Interrupt enable |
| $4201 | WRIO | I/O port write |
| $4202-03 | WRMPYA/B | Multiplication operands |
| $4204-06 | WRDIVL/H/B | Division operands |
| $4207-0A | HTIMEL/H, VTIMEL/H | IRQ timer |
| $420B | MDMAEN | DMA enable |
| $420C | HDMAEN | HDMA enable |
| $420D | MEMSEL | FastROM enable |
| $4210 | RDNMI | NMI flag |
| $4211 | TIMEUP | IRQ flag |
| $4212 | HVBJOY | H/V blank and joypad status |
| $4214-17 | RDDIVL/H, RDMPYL/H | Division/multiplication result |
| $4218-1F | JOY1L-4H | Joypad data |
8 DMA channels (x = 0-7):
| Offset | Name | Description |
|---|---|---|
| $43x0 | DMAPx | DMA parameters |
| $43x1 | BBADx | B-bus address |
| $43x2-04 | A1TxL/H/B | A-bus address |
| $43x5-06 | DASxL/H | Transfer size / HDMA count |
| $43x7 | DASBx | HDMA indirect bank |
| $43x8-09 | A2AxL/H | HDMA table address |
| $43xA | NTRLx | HDMA line counter |
| Bit | Name | Description |
|---|---|---|
| 7 | Force Blank | 1 = Screen off (black), VRAM/OAM/CGRAM accessible |
| 6-4 | - | Unused |
| 3-0 | Brightness | 0 = Black, 15 = Full brightness |
| Bit | Name | Description |
|---|---|---|
| 7-5 | Size | Sprite size combination (see table) |
| 4-3 | Name Select | Sprite tile address offset |
| 2-0 | Base | Sprite tile base address (/8192) |
The eight size combinations are tabled in The PPU: sprites.
| Register | Bits | Description |
|---|---|---|
| $2102 | 7-0 | OAM word address, low byte (sprite N = word 2N) |
| $2103 | 7 | OAM priority rotation |
| $2103 | 0 | OAM word address bit 8 (byte address bit 9) |
Write sprite data to OAM. Address auto-increments.
| Bit | Name | Description |
|---|---|---|
| 7 | BG4 Tile Size | 0 = 8x8, 1 = 16x16 |
| 6 | BG3 Tile Size | 0 = 8x8, 1 = 16x16 |
| 5 | BG2 Tile Size | 0 = 8x8, 1 = 16x16 |
| 4 | BG1 Tile Size | 0 = 8x8, 1 = 16x16 |
| 3 | Mode 1 BG3 Priority | 0 = Normal, 1 = High |
| 2-0 | BG Mode | 0-7 (see table below) |
What each mode gives each layer is tabled in The PPU: background modes.
| Bit | Name | Description |
|---|---|---|
| 7-2 | Address | Tilemap VRAM address (/1024) |
| 1-0 | Size | 00=32x32, 01=64x32, 10=32x64, 11=64x64 |
| Bit | Name | Description |
|---|---|---|
| 7-4 | BG2/BG4 | Tile data address (/4096) |
| 3-0 | BG1/BG3 | Tile data address (/4096) |
Write twice: first low byte, then high byte.
| Bit | Name | Description |
|---|---|---|
| 7 | Increment | 0 = After $2118, 1 = After $2119 |
| 3-2 | Translation | Address translation mode |
| 1-0 | Step | 00 = +1, 01 = +32, 10 = +128, 11 = +128 |
Word address (not byte address).
Colour index (0-255).
15-bit BGR555 colour, low byte first (format: The PPU: CGRAM and colours).
| Bit | Name | Description |
|---|---|---|
| 4 | OBJ | Enable sprites on main screen |
| 3 | BG4 | Enable BG4 on main screen |
| 2 | BG3 | Enable BG3 on main screen |
| 1 | BG2 | Enable BG2 on main screen |
| 0 | BG1 | Enable BG1 on main screen |
Same bit layout as TM, for sub screen (colour math).
| Bit | Name | Description |
|---|---|---|
| 7 | NMI Enable | Enable VBlank NMI |
| 5 | V-IRQ | Enable V-counter IRQ |
| 4 | H-IRQ | Enable H-counter IRQ |
| 0 | Joypad | Enable auto-joypad read |
H position (0-339) and V position (0-261/311) for IRQ trigger.
| Bit | Name | Description |
|---|---|---|
| 7 | NMI | 1 = NMI occurred (cleared on read) |
| 3-0 | Version | CPU version |
IMPORTANT: Read this register in NMI handler to acknowledge NMI!
| Bit | Name | Description |
|---|---|---|
| 7 | IRQ | 1 = IRQ occurred (cleared on read) |
IMPORTANT: Read this register in IRQ handler to acknowledge IRQ!
| Bit | Name | Description |
|---|---|---|
| 7 | VBlank | 1 = In VBlank |
| 6 | HBlank | 1 = In HBlank |
| 0 | Joypad | 1 = Auto-joypad read in progress |
8-bit x 8-bit = 16-bit multiplication.
16-bit / 8-bit division with remainder.
Write a bit mask to start DMA on channels 0-7.
Enable HDMA on channels 0-7. HDMA runs automatically each scanline.
Each channel has 16 bytes of registers at $43x0-$43xF where x = channel (0-7).
| Bit | Name | Description |
|---|---|---|
| 7 | Direction | 0 = A→B (CPU→PPU), 1 = B→A |
| 6 | HDMA Mode | 0 = Absolute, 1 = Indirect |
| 5 | - | Unused |
| 4 | Direction | A-bus address step direction: 0 = increment, 1 = decrement (ignored when bit 3 is set) |
| 3 | Fixed | 1 = fixed A-bus address (no step) — e.g. $08 for a fill from one byte |
| 2-0 | Mode | Transfer mode (see table) |
Transfer Modes:
The one table of the eight modes; the DMA and HDMA tutorials link here. For DMA the unit repeats until the byte count runs out; for HDMA it is what one table entry writes on one line.
| Mode | Bytes per unit | Registers written, in order |
|---|---|---|
| 0 | 1 | reg |
| 1 | 2 | reg, reg+1 (VRAM words through $2118/$2119) |
| 2 | 2 | reg, reg (a write-twice register) |
| 3 | 4 | reg, reg, reg+1, reg+1 (two write-twice registers) |
| 4 | 4 | reg, reg+1, reg+2, reg+3 |
| 5 | 4 | reg, reg+1, reg, reg+1 (same bytes-to-registers result as mode 1) |
| 6 | 2 | reg, reg (same as mode 2) |
| 7 | 4 | reg, reg, reg+1, reg+1 (same as mode 3 — not four consecutive registers; that is mode 4) |
PPU register address (low byte only, $21xx).
24-bit source address (CPU side).
Number of bytes to transfer (0 = 65536).
After auto-joypad read completes (check $4212 bit 0):
| Register | Description |
|---|---|
| $4218 | Joypad 1 low byte |
| $4219 | Joypad 1 high byte |
| $421A | Joypad 2 low byte |
| $421B | Joypad 2 high byte |
| $421C-$421F | Joypads 3-4 (multitap) |
Button Bit Layout:
| Byte | Bit 7 | Bit 6 | Bit 5 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 |
|---|---|---|---|---|---|---|---|---|
| Low ($4218) | A | X | L | R | 0 | 0 | 0 | 0 |
| High ($4219) | B | Y | Select | Start | Up | Down | Left | Right |
(anomie-regs: $4219 JOY1H, $4218 JOY1L, bits byetUDLR axlr0000.)
The SDK provides convenient macros in <snes/registers.h>:
The SA-1 is a second 65816 CPU at 10.74 MHz. These registers control inter-processor communication and memory protection. For the library-side register macros, see sa1.h.
| Register | Address | R/W | Description |
|---|---|---|---|
| CCNT | $2200 | W | SA-1 CPU control: reset, IRQ, NMI, 4-bit message to SA-1 |
| CRV | $2203-$2204 | W | SA-1 Reset Vector (address SA-1 jumps to on release from reset) |
| SIWP | $2229 | W | SNES I-RAM Write Protection — per-page write-enable bits; OpenSNES writes $FF (all writable) |
| CIWP | $222A | W | SA-1 I-RAM Write Protection — per-page write-enable bits; OpenSNES writes $FF (all writable) |
SIWP/CIWP polarity (resolved). Each bit is a write-**enable** flag for one 256-byte I-RAM page: bit=1 writable, $FF = fully writable. fullsnes, the official Nintendo development manual (§4.1.25) and nocash's hardware debugging agree, and Mesen2, snes9x and luna behave accordingly. The Super Famicom Dev Wiki page states the opposite for $2229/$222A and is wrong (it is also inconsistent with its own $2226/$2227 entries). See KNOWN_LIMITATIONS.md for sources. | SFR | $2300 | R | Status Flags: SA-1 IRQ/NMI pending, 4-bit message from SA-1 |
Typical boot sequence:
The Super FX (Graphics Support Unit) is a custom RISC processor with 16 general-purpose registers, hardware multiply, and a built-in pixel PLOT engine. GSU code runs from cartridge ROM/cache and renders into a shared SRAM framebuffer.
| Register | Address | R/W | Description |
|---|---|---|---|
| R0-R15 | $3000-$301F | R/W | General-purpose registers (16-bit each). Writing R15 starts the GSU! |
| SFR | $3030-$3031 | R | Status/Flag Register: GO bit (bit 5) = GSU is running |
| PBR | $3034 | R/W | Program Bank Register (GSU code bank) |
| SCBR | $3038 | W | Screen Base Register (framebuffer base address in SRAM) |
| SCMR | $303A | W | Screen Mode: pixel depth + bus ownership (RAN=SRAM, RON=ROM access) |
| VCR | $303B | R | Version Code Register (read-only, identifies GSU revision) |
Key concepts: