title: How to write division & remainder code without mult or div instructions in MIPS?
body: <p>I've got to take 2 user inputs and find the product, quotient and remainder. I cant use the multipication or division operators either.</p>
  
  <p>I've got the multiplication code:</p>
  
  <pre><code>L1:
  add  $t2,$s1,$s0  #diving $s0 by $s1
  bge  $s1, $s0, EXIT   # branch if ! ( i &lt; k )
  addi $s1, $s1, 1      # k++
  add  $t2, $s1, $s0    # i = i * 2 
  EXIT:
  </code></pre>
  
  <p>How would I find the quotient and remainder? I tried just changing all the <code>add</code>s to <code>sub</code>s but no luck.</p>