Immediate addressing

Immediate addressing in the 6502 microprocessor is used to reference a numerical value, not a memory address. Regardless, it is still called "addressing". By using immediate addressing you can load a value directly into a general purpose register.

Example using LDA

LDA #$42

This loads the number 42 into the accumulator. Note that for immediate addressing you have to prefix the hexadecimal number with the # sign.

Related Pages

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution 2.5 License.