A few days ago
priereca

*URGENT* Computer: how ”microprocessor instructions” works?

Normally, an indexed instruction like “load indexed xxxx AC” needs to make use of an index register such as IX. However, for simple microprocessor architectures with a limited number of registers, we can implement the “load indexed” instruction if we treat the accumulator AC as the index register. The ONLY difference here is that the AC is also the index register.

**The question is**

Even though it is possible to have the “load indexed” instruction with AC being the index register, it is not meaningful to implement the corresponding “store indexed” instruction.

Explain why…

Top 1 Answers
A few days ago
Truly W

Favorite Answer

“load xxx AC” on the simple microprocessor says, starting with address xxx, add the offset in the AC to xxx to get the effective address, and replace the contents of AC with the memory contents from the effective address.

“store indexed” would be pointless because you would first have to load/calculate the value you want into the AC. This value would probably not be the offset in memory from xxx that you would want to store the contents of AC.

For example, there would be no way to store the value 48 (in the AC) at address xxx+5 because the indexed store would be at effective address xxx+48, not xxx+5 because the AC would contain the value 48.

0