gb_encode_register_value
Generate the byte for a desired Game Boy register configuration. Returns the byte, binary breakdown, shift expression, and RGBDS-style assembly.
Instructions
Build the byte that produces a desired register configuration.
The inverse of gb_decode_register_value. Returns the byte, its binary
breakdown, a shift expression, and RGBDS-style assembly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | Field name to value. Values may be numbers, binary strings ('10'), or a documented meaning ('On', '9C00-9FFF'). | |
| register | Yes | Register name or address. |