CalculateQuestion 1 · Recall
Loading…
By the end you can name the five modes of addressing, explain how each one uses its operand, and work out what ends up in the accumulator for a given memory map.
Here is the trap: 100 is just a number. What the processor does with it depends entirely on the mode of addressing chosen by the instruction.
The mode answers one question: where do I go to get the data?
Same-looking operand, five different journeys.
Worked example: One memory map, four loads
Memory holds these values, and the index register contains 2:
| Address | 40 | 41 | 42 | 43 | 44 | 45 |
|---|---|---|---|---|---|---|
| Contents | 44 | 8 | 99 | 60 | 17 | 3 |
What ends up in ACC for each of these instructions?
a) LDM #40
b) LDD 40
c) LDI 40
d) LDX 40