ECE243 Practice Question Website


Main Assembly Programming Input/Output Memory Computer Architecture Advanced Topics

Computer Architecture Questions





Question 1

Consider the architecture as shown and the following instruction:

link a6, #-8
Bus Architecture
Give the register transfer notation for all of the steps of the execution of this instruction. Assume that the operation of the instruction, the operand, all addresses and registers are 2 bytes long, that each memory fetch is two bytes, and that the CPU addresses bytes.

Answer

sp <- [sp] - 2;
[sp] <- [a6];
a6 <- [sp];
sp <- [sp] - 8;