A good answer might be:

By four.

Integer Array

Here is nearly the same program as before, except that now the program adds up the integers in an array of full words (32 bits). The logic is the same as before.

        .globl  main

main:   
        li    $v1,0              # zero the sum
        li    $t1,_____          # init index to ???
        
        li    $t2,0              # init loop counter
for:    beq   $t2,5,endfor       # for ( i=0; i < 5 ;i++ )

        l___  $v0,array($t1)
        
        addu  $v1,$v1,$v0        #     sum = sum+array[i]
        
        addi  $t1,$t1,_____      #     increment index
        
        addi  $t2,$t2,_____      #     increment counter
        b     for
 
endfor:
        li    $v0,10             # exit
        syscall   

        .data
array:  .word  1,2,3,-5,1

QUESTION 14:

Just fill in the blanks and you have a working program!