Is there a way to programmatically determine the addressing mode from the opcode for 6502?

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.

+4
source share
1 answer

, . 3 4-2 (, xxxAAAxx). , ( ), , .

.

+4

All Articles