Question: a ) Assume a 3 2 - bit machine. What is the content of each register and which memory locations are changed as the code

a) 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.
sw R4,8(R2); ,M[8+R2]=R4;
addi R2, R2,4; , R2= R2+4;
Iw R1, O(R2); ,R1=M[0+R2];
add R3,R1,R2; ,R3=R1+R2;
Iw R2,4(R3); , R2= M[4+ R3];
addi R2,R2,8; ,R2=R2+8;
sw R3,22(R2); ,M[22+R2]=R3;
addi R4, R2,4; , R4= R2+4;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!