Six original Cambridge-style questions on addressing modes, with mark-scheme style solutions.
Describe immediate, direct and indexed addressing.
The index register holds 3. Memory holds:
| Address | 500 | 501 | 502 | 503 | 504 |
|---|---|---|---|---|---|
| Contents | 502 | 9 | 500 | 14 | 31 |
Give the contents of the ACC after each instruction is executed: (a) LDD 502, (b) LDI 502, (c) LDX 501, (d) LDM #502.
Explain the difference between indirect addressing and indexed addressing.
Using the memory in question 2, with IX holding 3, the ACC holds 500. State whether the compare in each instruction is True or False: (a) CMI 500, (b) CMP 503.
Explain why relative addressing allows a program to be relocated in memory.
A programmer wants to add 10 to the accumulator but writes ADD 10. Explain the error and correct it.
Mark this once you have attempted all six and checked your working. It records a Practiced badge on the topic and adds a one-time bonus. Revealing the solutions alone does not count.