title: Printing array in MIPS
body: <p>i have an array and want to print each element in a line 
  so i wrote this code </p>
  
  <pre><code>.data
  arr: .word 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
  newLine:     .asciiz     "\n"
  </code></pre>
  
  <p>and i do some calculations in this array 
  and when i wanna print i use this code </p>
  
  <pre><code>print:
      beq $s2,$s1,end
      addi $s2,$s2,1
      sll $t0, $s2, 2
      lw $a0,arr($t0)
      li $v0,1
      syscall
      la $a0,newLine
      li $v0,4
      syscall
      j print
  
  end:
      li $v0,10
      syscall
  </code></pre>
  
  <p>i found it prints element then 7  </p>
  
  <p>instead of element then new line   </p>
  
  <p><strong>any hints ???</strong></p>