Address 40 holds 62, address 62 holds 17 and address 63 holds 90. The index register IX holds 1. What is in the accumulator after each of LDM #40, LDD 40, LDI 40 and LDX 62?
- LDM #40 is immediate: the number 40 itself is loaded.
- LDD 40 is direct: the contents of address 40 are loaded, which is 62.
- LDI 40 is indirect: address 40 holds 62, so the contents of address 62 are loaded, which is 17.
- LDX 62 is indexed: 62 + 1 = 63, so the contents of address 63 are loaded, which is 90.
Answer: 40, 62, 17 and 90.