Question: b) how many instructuon memory references and how many data references? IM: DM: a) Assume a 32-bit machine. What is the content of each register

 b) how many instructuon memory references and how many data references?
IM: DM: a) Assume a 32-bit machine. What is the content of
b) how many instructuon memory references and how many data references?
IM:
DM:

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 in tial values. PART A add R3R1,R2;R3=R1+R2; bo. R2,24(R3):R2=M[24+R3]: addi R2, R2, 4. R2=R2+4 SWR4,8RR2] M[8+R2]=R4; addi R2R2,16;R2=R2+16; SECR3,4(R2)=M[4+R2]=R3; addi R2,R2,4=R2=R2=4; lox R1, ORR2] R1=M[0+R2] PART 8 b) How many instruction memory references and how many data memory references? 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. add R3,R1,R2;R3=R1+R2; Iw 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=R24; Iw R1, O(R2); R1=M[0+R2]

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!