Skip to main content

Module boot

Module boot 

Source
Expand description

Hardware identification captured by the startup code at boot.

The boot ROM leaves identification values in registers A and B when it hands control to the cartridge at 0x100, valid only at that first instruction. rrt0 captures them into __boot_a and __boot_b; this module reads them back. Interpreting the values is left to callers:

RegisterValueConsole
A0x01DMG, and Super Game Boy
A0xFFMGB (Pocket, Light)
A0x11CGB, also reported by the Game Boy Advance
Bbit 0 setGame Boy Advance running in CGB mode

Functionsยง

a
Value left in register A by the boot ROM.
b
Value left in register B by the boot ROM.