Login
Plus/4 EncyclopediaFirstBackNextLast

LDA
Category
Reference/6502 Programming/Assembly

Topic
LDA - LoaD Accumulator

Loads a byte of memory into the accumulator. Sets the Zero Flag and Negative Flags as appropriate.

Examples
LDA #$1B A will be equal to $1B
LDA $0314 A will be equal to whatever value is at memory location $0314


Opcodes
Addressing ModeSyntaxOpcodeBytesCycles
Immediate addressing modeLDA #$00,$A922
Zero Page addressing modeLDA $00$A523
Zero Page,X addressing modeLDA $00,X$B524
AbsoluteLDA $1000$AD34
Absolute,XLDA $1000,X$BD34 (+1 if page crossed)
Absolute,YLDA $1000,Y$B934 (+1 if page crossed)
(Indirect,X)LDA ($10,X)$A126
(Indirect),YLDA ($10),Y$B125 (+1 if page crossed)


See Also
LDX, LDY 



Copyright © Plus/4 World Team, 2001-2024