title: Converting to MIPS assembly Language with arrays
body: <p>Not the best at converting, especially to MIPS assembly Language.</p>
  
  <p>This was the original Code:</p>
  
  <pre><code>void swap(int v[], int k, int j) { 
  int temp; 
  temp = v[k]; 
  v[k] = v[j]; 
  v[j] = temp; 
  }
  </code></pre>
  
  <p>With some help we managed to get to this, now i need to convert this to MIPS Assembly code, only just finished learning Java still a noob. Any help is welcome.</p>
  
  <pre><code>k = k &lt;&lt; 2;
  k = k + v
  j = j &lt;&lt; 2;
  j = j + v
  temp0 = load(k)
  temp1 = load(j)
  store(k) = temp1
  store(j) = temp0
  </code></pre>