title: How to avoid goto and jump when coding in assembly?
body: <p>I'm aware of the numerous posts here and elsewhere on avoiding goto in high-level programming languages. However from the (admittedly small) experience I've had coding in MIPS assembly, there doesn't seem to be an obvious way to avoid goto and jump statements in assembly when implementing control flow. </p>
  
  <p>For example how would this code be implemented in assembly (C equivalent):</p>
  
  <pre><code>if (x &lt; 2)
    { ans = 0; }
  else
    { ans = 1; } 
  </code></pre>
  
  <p>Would the use of a goto or jump statement be necessary, or is there a proper way of avoiding them in favor of more appropriate code practices?</p>