a)On the IAS, what would the machine code instruction look like to load the contents of memory address 2 to the accumulator?
b) How many trips to memory does the CPU need to make to complete this instruction during the instruction cycle?
a)
OpCode | Operand (Address)
----------------------------------------------------------------------
00 0001 | 0000 0000 0010
b)
At the beginning, the CPU must get an instruction from memory. The instruction contains the address of the data to be loaded. Then the data will be loaded, which are located at this address. This is another memory call.
During the execution time of the instruction, there will be two memory accesses.
Comments
Leave a comment