add $t0, $r0, $r0 ;t0 = i addi $t4, $t4, 404 ;t4 = end of loop add $t1, $a0, $r0 ;t1 = a add $t2, $a1, $r0 ;t2 = b Loop: add $t1, $t1, $t0 ;a = a + i since i starts at 0 this is safe add $t2, $t2, $t0 ;b = b + i lw $t3, $t2 ;t3 = b[i] addi $t3, $t3, $s0 ;t3 = t4 + c (b[i] + c) sw $t1, $t3 ;a[i] = b[i] + c addi $t0, 4 ;i = i + 4 bne $t0, $t4 ;if i != 404, goto loop 101 times through the loop, each with 7 instructions, plus the initial 4, => 711 101 times through the loop, each with 2 memory data references, => 202