title: MIPS float printing
body: <p>I wrote this code in MIPS to calculate the sum of N-numbers with double float precision.
  But when I print the result it prints 0.00000 althought I see that in memory it's the correct result.</p>
  
  <p>Anyone can help me with this?</p>
  
  <pre><code>#architecture ex.2
  
  .data
  first: .asciiz "Give the number of the summation"
  m1: .asciiz "Give the"
  m2: .asciiz "th number."
  nl: .asciiz "\n"
  final: .asciiz "The sum is"
  
  
  
  
  
  .text
  main:
  
  
  
  li $v0, 4          
  la $a0, first      
  syscall
  li $v0,5
  syscall
  move $t1,$v0
  li $v0, 4          
  la $a0, nl      
  syscall
  
  
  li $t2,0
  li $t0,1
  
  mtc1.d $t2, $f2
  cvt.d.w $f2, $f2  
  
  
  
  Sumin:
  
  li $t3,0
  
  li $v0, 4          
  la $a0, m1      
  syscall
  li $v0,1
  move $a0,$t0
  syscall
  li $v0, 4          
  la $a0, m2      
  syscall
  li $v0, 4          
  la $a0, nl      
  syscall
  
  li $v0,5
  syscall
  move $t3,$v0
  
  mtc1.d $t3, $f14
  cvt.d.w $f14, $f14
  
  add.d $f2,$f2,$f14
  
  
  addi $t0,$t0,1
  ble $t0,$t1,Sumin
  
  Sumexit:
  
  li $v0, 4          
  la $a0, final      
  syscall
  li $v0, 4          
  la $a0, nl      
  syscall
  
  
  li $v0,2
  mov.d $f12,$f2
  syscall
  
  END:jr $ra
  </code></pre>