gb_decode_opcode
Disassemble SM83 bytecode into instructions with mnemonics, operands, cycle counts, and flag effects. Identify invalid opcodes that halt the CPU.
Instructions
Disassemble SM83 bytes into instructions.
Mnemonics, operands and encoding come from Pan Docs; cycle counts and flag effects come from gbdev.io/gb-opcodes (Pan Docs documents neither), and each field says which. Invalid opcodes that hard-lock the CPU are flagged.
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": {
"data": "<data>"
},
"name": "gb_decode_opcode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Address the first byte sits at, for the listing. | 0 |
| data | Yes | Hex bytes, e.g. '3E 91 E0 40' or '3e91e040'. | |
| limit | No | Maximum instructions to decode. |