| LDX | Reference/6502 Programming/Assembly
LDX - LoaD X register
Affects Flags: S Z
Loads a memory byte (or an immediate value) into the X register.
LDX #$00 X register will be equal to zero LDX $FF15 X register will be equal to whatever the value of memory location $FF15 is
Addressing Mode | Syntax | Opcode | Bytes | Cycles | Immediate | LDX #$44 | $A2 | 2 | 2 | Zero Page | LDX $44 | $A6 | 2 | 3 | Zero Page,Y | LDX $44,Y | $B6 | 2 | 4 | Absolute | LDX $4400 | $AE | 3 | 4 | Absolute,Y | LDX $4400,Y | $BE | 3 | 4+ |
+ add 1 cycle if page boundary crossed
LDA, LDY |
| |
Copyright © Plus/4 World Team, 2001-2024. Support Plus/4 World on Patreon |