li $t1, 1 li $t2, 100 looplabel: beqz $t2, endloop add $t1, $t1, $t2 subi $t2, $t2, 1 j looplabel endloop: move $t3, $t1