Addressing. Sample Question. Three addressing modes. Immediate Not an address. Use this number as it is. Direct Treat this number as an address, use the value that is at that address. Indirect
Indirect addressing may be used for code or data. It can make implementation of pointers or references or handlesmuch easier, and can also make it easier to call subroutines which are not otherwise addressable.
Some early minicomputers (e.g. DEC PDP-8, Data General Nova) had only a few registers and only a limited addressing range (8 bits). Hence the use of memory indirect addressing was almost the only way of referring to any significant amount of memory.
LDA 99 (X)
LDA #0 ;load 0 to acc
LDX #0 ;load 0 to x
LOOP STA TABLE(X) ;store acc in table+x
INX ;increment x
CPX #99 ;compare x with 99
BNE LOOP ;branch if not equal
What does this do?