Question: Question 2. (10 points) Consider the following MIPS Code: LOOP: slt St2,0, Stl beq S12,0, DONE subi St, St1, 1 addi $s2, Ss2,2 LOOP DONE

Question 2. (10 points) Consider the following MIPS Code: LOOP: slt St2,0, Stl beq S12,0, DONE subi St, St1, 1 addi $s2, Ss2,2 LOOP DONE Answer the following questions: 2. i) Assuming that Stl- 10 and Ss2 0 initiall. What is the final value of Ss2? 2.ii) Write the C code for the MIPS code assuming that registers Ss2, Stl and St2 are x, y and z, respectively. 2.ii)For the MIPS Assembly code, assuming that St is iitialized to N. How many MIPS instructions will be executed
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
