Programming for the Gameboy/LR35902 CPU architecture
The LR35902 is a Z80/8080-like CPU used inside of the Gameboy and Gameboy Color. It is somewhat similar to the two, but has enough differences that you cannot simply treat it as a Z80 or 8080.
Page conventions
Assembly conventions
editAll real register names are capitalized, i.e. register A
or SP
16-bit constants in a instruction are represented as nn
8-bit constants in a instruction are represented as n