gb_disassemble_at_pc
Disassembles Game Boy ROM code around the current program counter, marking the active instruction and showing before/after context to inspect execution location.
Instructions
Show instructions around the current program counter.
Uses a backward-scan heuristic to find *before* instructions preceding PC,
then decodes *after* instructions following it. The instruction at PC is
marked with "current": true. Returns error if no ROM loaded.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "gb_disassemble_at_pc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | ||
| before | No |