00:02
So each iteration performs s2 is equal to s2 plus t1, and then t1 is equal to t1 minus 1.
00:16
And so the first iteration, s2 is going to be 0 plus 5, and then t1 is going to be 5 minus 1.
00:30
Then for the second iteration, i have 5 plus 4, then t1 is going to be 4 minus 1.
00:42
Then we keep going until the final iteration where s2 is 14 plus 1 is 15 t1 is 1 minus 1 which is 0 and so once t1 hit 0 s 2 is 15 so for part b the total so each iteration executes the following instructions so slt have bq, we have add, add i, and we have j.
01:34
And so there are, the total per iteration is five instructions.
01:41
The total, sorry, there are, the loop runs five times before exiting.
01:49
So total instructions per loop is five times five, which is 25.
01:55
Now, we also have the initialization instructions before the loop start.
01:59
We have add i 0 5 this is 1 and you have add s2 0 that's another one then we have add s2 0 that's another one then after exiting the loop we have the q which is 1 and you also have the don label which is 1...