我在循环中对数组的内容求和时遇到问题。
loop3:
beq $t5, $t1, loop4 #if $t5 is equal to $t1, then goto exit
lw $t6, 0($s0) #load contents of $s0 to $t6
add $t6, $t6, $t6 #sums the contents
addi $s0, $s0, 4 #increments pointer of pArry
add $t5, $t5, 1 #increments counter of loop3
j loop3