gb_set_register
Set Game Boy CPU registers (A, B, C, D, E, F, H, L, SP, PC) to specific values for debugging or modifying emulator state.
Instructions
Set a CPU register to a specific value.
Supported registers: A, B, C, D, E, F, H, L, SP, PC.
8-bit registers accept 0x00-0xFF, 16-bit (SP, PC) accept
0x0000-0xFFFF. Writing to F masks to upper nibble (0xF0).
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>",
"value": "<value>"
},
"name": "gb_set_register"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| register | Yes |