Question: Problem 7 (30 marks) Use the following code fragment: Loop: LW R1,0 (R2) ADDI RI, H , 1 SW R1, 0 (R2) ADDI R2,R2,4 SUB

 Problem 7 (30 marks) Use the following code fragment: Loop: LW

R1,0 (R2) ADDI RI, H , 1 SW R1, 0 (R2) ADDI

Problem 7 (30 marks) Use the following code fragment: Loop: LW R1,0 (R2) ADDI RI, H , 1 SW R1, 0 (R2) ADDI R2,R2,4 SUB R4, R3,R2 BNEZ R4, Loop load R1 from address 0+R2 ;R1-R1+1 ;store R1 at address 0+R2 R2-R2+4 R4-R3-R2 branch to Loop if R41-0 Assume that the initial value of R3 is R2396 Further assume that the branch addresses are calculated during the ID phase and branch prediction is handled as designated in the tables 2.1 of the appendix

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!