Back to: Learn 6502 assembly
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 Mode | Example | Explanation |
---|---|---|
immediate | LDA #8 | load $8 into accumulator |
zero page | LDA $00 | load accumulator from zero page address $00 |
zero page, X | LDA $06, X | load accumulator from zero page with address calculated from $06 adding content of X |
absolute | LDA $1000 | load accumulator from address $1000 |
absolute, X | LDA $1000, X | |
absolute, Y | ||
(indirect X) | ||
(indirect) Y |