.text main: #locals # $t0, i loop_i_to_10__init: li $t0, 0 #i = 0; loop_i_to_10__cond: bgt $t0, 10, loop_i_to_10__end #if (i >= 10) goto loop_i_to_10__end; loop_i_to_10__body: li $v0, 1 # printf("%d", i); move $a0, $t0 syscall li $v0, 11 li $a0, '\n' syscall # putchar('\n'); loop_i_to_10__step: addi $t0, $t0, 1 # i++; b loop_i_to_10__init # goto loop_i_to_10__init; loop_i_to_10__end: li $v0, 0 jr $ra