gb_decode_register_value
Decode a byte written to a Game Boy register, revealing each bit's documented meaning and listing undocumented bits separately.
Instructions
Explain what writing a specific byte to a register actually configures.
This is the tool for disassembly constants: given ld a,$91 / ldh [rLCDC],a,
it reports every bit's documented meaning. Bits with no documented meaning
are listed separately rather than guessed at.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | The byte written, e.g. '$91', '0x91', '145'. | |
| register | Yes | Register name or address, e.g. 'LCDC' or '$FF40'. |