Question: please help as soon as possible. Question 1 5 pts What does the following code do? (You can simply write down the corresponding code in

please help as soon as possible.  please help as soon as possible. Question 1 5 pts What
does the following code do? (You can simply write down the corresponding

Question 1 5 pts What does the following code do? (You can simply write down the corresponding code in any high-level programming language such as C or just a pseudo code for it. For convenience, you can define six variables fig. 1), which correspond to the content in register $0, $81. $s2. $s3, Ss4. $85, respectively) bne Ss5, Szero, ci add $so, $s3. $s4 1 Exit C1: addi Sto, Ss5 -1 bne Sto, Szero, C2 add $50, Ss1. Ss2 } Exit C2 addi Sto, $55, -2 bne $t0, Szero, C3 sub Sso, Ss1, $s2 Exit C3. addi Sto, $85-3 bne Sto, Szero, Exit sub $50, $83, $54 Exit Edt View insert Format Tools Table Pach BT UA 20 2 3 4 5 6 7 8 Question 2 5 pts Consider the following two loops: Assembly Code 1 Assembly Code 2 I $50,0 addi S4, S53, 32 ll $t1,0 add $t1,$t1,$s3 $50,0 addi $84, $83, 32 $11,0 add $t1,$t1,$s3 Loop: beg $t1,$64, exitloop1 lw $t0,($11) add $80, S80, $10 addi $t1,$t1,4 I Loop exitLoop Loop2 lw $t0,($11) add $80, S60, Sto addi $11,511,4 bne $11. Ss4 Loop2 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

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!