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.
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. |