title: lw in MIPS (also a bit C)
body: <p>I have a homework question and it is troubling me.
  It goes like</p>
  
  <pre><code>sll $t0, $s0, 2    // $t0 = $s0 &lt;&lt; 2;
  
  add $t1, $t0, $s2  // $t1 = $t + $s2;
  
  lw  $s3, $0($t1)
  </code></pre>
  
  <p>I'm confused about the <code>$0</code>, does it have the same effect as 0?</p>
  
  <p>What value would the result give?</p>
  
  <p>It is a question asking me to translate mips into c, where $s0 is represented as variable name a, $s1 b, $s2 c etc.</p>
  
  <p>The answer for this section is supposed to be <code>d = c[a];</code>,
  but i really dont see why.</p>