Absolute Mode¶
Syntax¶
instruction absolute_address
Description¶
In the absolute addressing mode, the effective address is a 16-bit absolute address specified in the instruction. The instruction operates on the memory location pointed to by this 16-bit address.
Example¶
Here’s an example using the LDA instruction in absolute addressing mode:
LDA $2000
The instruction will perform the following steps:
Load the value at memory location $2000 into the accumulator.
Use Cases¶
Absolute addressing mode is useful for accessing variables that cannot fit in zero page RAM. It is also useful for accessing I/O registers.