Question: Line 1 : sll $t 0 , $s 1 , 2 Line 2 : add $t 0 , $t 0 , $s 0 Line 3

Line1: sll $t0, $s1,2
Line2: add $t0, $t0, $s0
Line3: lh $t1,2($t0)
Line4: slti $t2, $t1,0
Line5: beq $t2, $0, Line9
Line6: bne $t1, $t1, Line10
Line7: addi $t1, $t1,-1
Line8: j Line10
Line9: addi $t1, $t1,1
Line10: sb $t1,2($t0)

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!