Question: 4. Consider the simplified internal CPU operation to perform the following calculation. Only the following CPU commands are used LD A, addr : load the

4. Consider the simplified internal CPU operation to perform the following calculation. Only the following CPU commands are used LD A, addr : load the content of memory address addr to accumulator ADD addr: add the content of memory address to the number in accumulator, save the result in the accumulator SUBT addr: subtract the content of memory address from the number in accumulator, save the result in the accumulator MULT addr: multiply the content of memory address with the number in accumulator, save the result in the accumulator MV addr: write the contents of accumulator to memory address addr The operations are always computed from left to right. That is: 2-3*5 = -5 Show the values of the registers and the memory contents at every clock tick for the following operation 4+2*5. Note you should assign the memory addresses as well. Memory Memory Instruction address register Instruction register Accumulator 1. adm 2. adim 3. adim 4. adim 5. adm Instruction address register Instruction register Accumulator G. adim 7. adm 8. adim 9. adm 10. adim Instruction address register Instruction register Accumulator 11. adm 12. adim 13. adm 14. adm 15. adim
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
