While Loop in Mips (New to Mips)

Change the line:

add $t1, $s0, $t1

To:

add $s0, $s0, $t1

Also, there is no need for use of the data segment. Just set $t1 using:

li $t1, 100

Leave a Comment