title: MIPS: Integer Multiplication and Division
body: <p>So I'm building a calculator program in MIPS and I'm trying to write the multiply and divide functions. </p>
  
  <p>Currently I read in the integers in a loop like so: </p>
  
  <pre><code>li $v0, 5
  syscall
  </code></pre>
  
  <p>and then eventually call my functions <code>multi</code> and <code>divi</code>depending on which action the user wants to do. </p>
  
  <p>So assuming I have the integers in <code>$a0</code> and <code>$a1</code>, what would be a clean way to multiply <code>$a0</code> by <code>$a1</code> and/or divide <code>$a0</code> by <code>$a1</code>? I've been looking around online but I can't find a clean and easy way to do this, because I have to send the resulting answer back in <code>$v0</code></p>