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.

Assembly conventions
All real register names are capitalized, i.e. register  or

16-bit constants in a instruction are represented as

8-bit constants in a instruction are represented as