title: MIPS program not printing string
body: <h2>Working code</h2>
  <p>Following is a simple program which prints <em>Hello guys</em>:</p>
  <pre><code>.data
  myMessage: .asciiz &quot;Hello guys\n&quot;
  
  .text
  
  li $v0, 4
  la $a0, myMessage
  syscall
  </code></pre>
  <p>Output:</p>
  <pre><code>pam@g3:~/fuzzy-robot$ java -jar Mars4_5.jar main.asm
  MARS 4.5  Copyright 2003-2014 Pete Sanderson and Kenneth Vollmar
  
  Hello guys
  </code></pre>
  <h2>Similar code but not working</h2>
  <p>But when I adding some extra statements for handling memory locations, this code doesn't work:</p>
  <pre><code>.data
  myMessage: .asciiz &quot;Hello guys\n&quot;
  
  .text
  li $t8,268500992
  li $t0, 199
  sw $t0,0($t8)
  
  li $v0, 4
  la $a0, myMessage
  syscall
  </code></pre>
  <p>Output:</p>
  <pre><code>pam@g3:~/fuzzy-robot$ java -jar Mars4_5.jar main.asm
  MARS 4.5  Copyright 2003-2014 Pete Sanderson and Kenneth Vollmar
  
  Ç
  </code></pre>
  <p>I want to know why it is not working the second time?</p>
  <p>You can download the <strong>Mars4_5.jar</strong> file from <a href="https://courses.missouristate.edu/KenVollmar/MARS/MARS_4_5_Aug2014/Mars4_5.jar" rel="nofollow noreferrer">here</a>.</p>