title: Basic MIPS explanation
body: <p>I am new to MIPS and I am working with the QtSpim. </p>
  
  <p>On my first example the console prints 5.</p>
  
  <pre><code>li $a0, 5
  li $v0, 1
  syscall
  </code></pre>
  
  <p>In this example it will print <em>hello</em></p>
  
  <pre><code>str: .asciiz "hello"
  
  li $v0, 4
  la $a0, str
  syscall
  </code></pre>
  
  <p>When I changed the <em>1</em> to <em>4</em> on example 1 I didn't get the <em>5</em> as a result.<br>
  When I changed the 4 to 1 on example 2 I didn't get the <em>hello</em> as a result.</p>
  
  <p>What is the purpose of <strong>1</strong> in</p>
  
  <pre><code>li $v0, 1
  </code></pre>
  
  <p>and what is the purpose of 4 in</p>
  
  <pre><code>li $v0, 4
  </code></pre>
  
  <p>Thank you!</p>