Question: Consider the following MIPS loop: LOOP: slt $t2, szero, $t1 beg $t2, szero, DONE addi ti, ti, -1 addi $31, $31, 2 j LOOP DONE:

Consider the following MIPS loop: LOOP: slt $t2, szero, $t1 beg $t2, szero, DONE addi ti, ti, -1 addi $31, $31, 2 j LOOP DONE: 1. Write comments for each line at the right side of above table. 2. Assume initial values are $t1=2, Ss1=0. What is the value in register $s1 at the end of the program? 3. Write the equivalent Java code Assume that the registers $sland $t1 are integers x and i, respectively
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
