Question: Problem 3 Assume a 32-bit machine. What is the content of each register and which memory locations are changed as the code below is executed.
Problem 3 Assume a 32-bit machine. What is the content of each register and which memory locations are changed as the code below is executed. Use the register and memory values in the table below as initial values. Register Memory Location Value Value R1 R2 R3 R4 16 18 12 16 20 20 14 add R3,R1,R2 lw R2,8(R3); addi R2, R2,-2 sw R4,0(R2); addi R2,R2,8 sw R2, 8(R3); Register RI R2 R3 R4. Value lemory Location Value 12 16 20
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
