LDA

LDA stands for LoaD Accumulator. LDA is one of six memory operations in the 6502 instruction set. The LDA operator is used to load a byte of memory into the accumulator, as well as setting the negative and zero flags.

All eight addressing modes can be used with the LDA operator:

Addressing ModeExampleExplanation
immediateLDA #8load $8 into accumulator
zero pageLDA $00load accumulator from zero page address $00
zero page, XLDA $06, Xload accumulator from zero page with address calculated from $06 adding content of X
absoluteLDA $1000load accumulator from address $1000
absolute, XLDA $1000, X
absolute, Y
(indirect X)
(indirect) Y