title: Greater than, less than equal, greater than equal in MIPS
body: <p>Given two registers <code>$s0</code>, <code>$s1</code>, how can I convert the following pseudocode into MIPS assembly language using only the <code>slt</code> (set on less than) and <code>beq</code> and <code>bne</code> (branch if equal, branch if not equal) instructions.</p>
  
  <pre><code>   if ($s0 &gt; $s1) { goto label1 }
     if ($s0 &gt;= $s1) { goto label2 }
     if ($s0 &lt;= $s1) { go to label3 }
  </code></pre>