those. different addressing modes encoded somehow in operation codes? Can they be extracted programmatically or is this information only available in 6502 documentation? I am writing an emulator, and performance does not concern me. It would be nice to have a function that takes the opcode and returns the addressing mode, if possible.
So far, I have not seen any signs that there is a template in the codes, except that all instructions with a zero page seem to have their third bit.
source
share