Show Menu
Cheatography

RGBDS Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Custom Registers

rBGP
Background Palette Data
rOBP0
Object Palette 0 Data
rSCY
Scroll Y
rSCX
Scroll X
These are defined in gbhw.inc.

8-Bit Registers

A
Accumu­lator
B
8-bit counter
C
interface with hardware
D
Not used in 8-bit
E
Not used in 8-bit
F
Flags
H
Not used in 8-bit
L
Not used in 8-bit
I
Interrupt vector
R
Refresh
IXH
Higher byte of IX
IXL
Lower by of IX
IYH
Higher byte of IY
IYL
Lower byte of IY

16-Bit Registers

AF
Not used.
BC
Operator on streams.
DE
Holds the address of a memory location
HL
Common usage.
PC
Program counter.
SP
Stack pointer.
IX
Index register.
IY
Index register.
   

Instru­ctions

ld X, Y
load
puts Y into X
rcla
rotate Left Cir. Acc.
performs RLC A much quicker
ret
return
pops top of stack