title: In MIPS, how do I divide register contents by two?
body: <p>Let's say I have <code>$t0</code>, and I'd like to divide its integer contents by two, and store it in <code>$t1</code>.</p>
  
  <p>My gut says: <code>srl $t1, $t0, 2</code></p>
  
  <p>... but wouldn't that be a problem if... say... the right-most bit was 1? Or does it all come out in the wash because the right-most bit (if positive) makes <code>$t0</code> an odd number, which becomes even when divided?</p>
  
  <p>Teach me, O wise ones...</p>