gb_lookup_instruction
Find the encoding, bit pattern, opcode bytes, cycles, and flag effects for any Game Boy instruction mnemonic. Resolves exact machine code for decompilation work.
Instructions
Look up how an instruction is encoded, and what it costs.
Returns the bit pattern, every opcode byte in the group, an example decoding, and its cycles and flag effects.
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": {
"mnemonic": "<mnemonic>"
},
"name": "gb_lookup_instruction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mnemonic | Yes | 'ld hl, imm16', 'bit', 'rst', 'daa', ... |