Question: For the following loop, assume that $t1 = 0, $13=0, $t4-4. After the code has run, what is the value in register $s2 (assuming

 For the following loop, assume that $t1 = 0, $13=0, $t4-4. After  

For the following loop, assume that $t1 = 0, $13=0, $t4-4. After the code has run, what is the value in register $s2 (assuming $s2 is initially zero) and $t1 ? LOOP: beq $t1, $t4, DONE DONE: addi $t3, $t3, 5 addi $t1, $t1, 1 J LOOP addi $s2, $t3,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 Accounting Questions!