Re:6502 “Illegal” Opcodes Demystified
by ectopod on Sunday June 06, 2021 @12:54PM
(#27414419)
You can convert from an opcode to an index into a lookup table of mnemonics quite efficiently, and vice versa. You can also pack a single three character mnemonic into two bytes, so the lookup table may be hard to spot. Assemblers and disassemblers running on 6502 used to do this because space was at a premium.
[ Parent
| on HN ]