Login
Plus/4 EncyclopediaFirstBackNextLast

LDX
Category
Reference/6502 Programming/Assembly

Topic
LDX - LoaD X register

Affects Flags: S Z

Loads a memory byte (or an immediate value) into the X register.

Examples
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

Opcodes
Addressing ModeSyntaxOpcodeBytesCycles
ImmediateLDX #$44$A222
Zero PageLDX $44$A623
Zero Page,YLDX $44,Y$B624
AbsoluteLDX $4400$AE34
Absolute,YLDX $4400,Y$BE34+

+ add 1 cycle if page boundary crossed


See Also
LDA, LDY 



Copyright © Plus/4 World Team, 2001-2024. Support Plus/4 World on Patreon