Z80 Disassembler ~repack~ 📌
The core is a large lookup table (often generated by a script from an instruction set database). Since Z80 has prefixes, the table is typically indexed by (prefix_state, opcode_byte) .
struct z80_insn char *mnemonic; // "LD A, B" int length; // bytes consumed int (*decoder)(uint8_t *bytes, char *out_buf); ; z80 disassembler