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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"register": "<register>",
"fields": "<fields>"
},
"name": "gb_encode_register_value"
}
}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. |