Modes for addressing 6502 processor commands and corresponding codes.
Note: Opcodes in Red are 65C02 only opcodes
Explanations of abbreviations:
Addressing | Description of addressing | Example |
IMP | Implied | CLC |
ACC | Accumulator | ROR |
IMM | Immediate | LDA #0 |
ZPG | Zero page | STA $FE |
ABS | Absolute | STX $E000 |
ABSX | Absolute indexed by X | ADC $4004, X |
ABSY | Absolute indexed by Y | SBC $8008, Y |
ZPGX | Zero page indexed by X | LDY $A0, X |
ZPGY | Zero page indexed by Y | STX $E0, Y |
REL | Relative | BNE .loop |
ZPGI | Indirect zero page (65C02 only) | ADC ($08) |
ZPGIX | Zero page indirect pre-indexed by X | ORA ($C2,X) |
ZPGIY | Zero page indirect post-indexed by Y | AND ($A5),Y |
ABSI | Absolute indirect | JMP ($E120) |
ABSIX | Absolute indirect indexed by X (only 65C02) | JMP ($123E, X) |
ZREL | Used with BBR & BBS only (only 65C02) | BBR #1, $35, $D000 |
ZPG2 | Used with RMB & SMB only (only 65C02) | SMB #7, $12 |