add $t1, $s3, $s3 #t1 = 2*i add $t1, $t1, $t1 #t1 = 4*i add $t1, $t1, $s6 #t1 = address of save[i] lw $t0, 0($t1) #t0 = save[i] bne $t0, $s5, Exit #if save[i] != k, exit Loop: add $t1, $s3, $s3 #t1 = 2*i add $t1, $t1, $t1 #t1 = 4*i add $t1, $t1, $s6 #t1 = address of save[i] lw $t0, 0($t1) #t0 = save[i] add $s3, $s3, $s4 #i = i + j beq $t0, $s5, Loop #if save[i] == k, continue