main: .data len0: .word 0 ctr0: .word 0 .text li $v0,5 syscall sw $v0,len0 li $v0,5 syscall sw $v0,ctr0 lw $t0,len0 li $v0,1 move $a0,$t0 syscall lw $t0,ctr0 li $v0,1 move $a0,$t0 syscall lw $t0,len0 lw $t1,ctr0 add $t0,$t0,$t1 li $v0,1 move $a0,$t0 syscall lw $t0,len0 li $t1,5 add $t0,$t0,$t1 li $v0,1 move $a0,$t0 syscall li $v0,10 syscall