Question: Please explain how to complete this problem. Problem 4 1. Assume a 32-bit machine. What is the content of each register and which memory locations

Please explain how to complete this problem.
Problem 4 1. 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 Value Memory Location Value R1 4 32 16 R2 8 36 20 R3 16 40 32 R4 18 44 40 add R3, R1,R2 R3-R1 + R2: lw R2, 24(R3); R2 = M[24 + R3]: addi R2, R2.4; R2 - R2 + 4; sw R4,8(R2): M[8+ R2) - R4; addi R2,R2,16: R2 - R2 + 16; sw R3, 4(R2); M[4 + R2] = R3; addi R2, R2, -4: R2 - R2-4; Iw R1, O(R2); R1 = M(O+ R2): Use the table below to enter the final values in the registers and memory locations. Register Value Memory Location Value R1 32 R2 36 R3 40 R4 44 1. How many instruction memory references and how many data memory references? IM: DM
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
