Question: Consider the following two loops: Assembly Code 1 Assembly Code 2 li $80,0 li $50,0 addi $84, $s3, 32 addi $84, $s3, 32 li $t1,0

Consider the following two loops: Assembly Code 1 Assembly Code 2 li $80,0 li $50,0 addi $84, $s3, 32 addi $84, $s3, 32 li $t1,0 li $t1,0 add $t1,$t1,$s3 add $t1,$t1, $s3 Loop 1: beg $t1,$s4, exitLoop1 Loop2 lw $t0, O($t1) lw $t0,($11) add $so, Sso, Sto add $so, $50, $t0 addi $t1, $t1,4 addi $t1,$t1,4 bne $t1, $s4 Loop2 Loop1 exitLoop1: exitLoop2 What do the loops do? Is there a difference between the functionalities of the two loops? If yes, what is the difference
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
