title: How to use ascii to prompt input properly in MIPS32
body: <p>here's my code. I want it to output "Hi, input here: ". But instead, it prints both "Hi, input here: " and "Hello, input here: ". How can I fix that?</p>
  
  <pre><code>            .data
  str_one:        .ascii      "Hi, input here: \n" 
  str_two:        .ascii      "Hello, input here: \n" 
  
              .text
  
  main:       
  
      li $v0, 9           #memory allocation syscall
      li $a0, 12
      syscall
  
      move $s0, $v0          
  
      li $v0, 4
      la $a0, str_one        #Prompt string
      syscall
  
      li $v0, 8          #Read string
      la $a0, ($s0)
      li $a1, 8
      syscall
  </code></pre>