Please complete the following code, which is supposed to be a loop that scans a word array, adds the numbers that have been scanned, and exits when the summation, to be stored in $t0, is larger than the number in $s2, or until all numbers has been scanned. The starting address of the array is in $s0. The length of the array is in $s1. Only $t0, $t1, and $t2 can be modified in your code.
a).ori $t0, $0, 0
b).ori $t1, $0, 0
c).P2P5L0: sll $t2, $t1, 2
d).lw $t2, 0($t2)
e).bgt $t0,
f).addi $t1, $t1, 1
g).P2P5L1: nop