title: Dividing in Assembler x86
body: <p>My college gave me a exercise: </p>
  
  <p><em>1. Create a new document in Jasmin</em></p>
  
  <p><em>2. Use the AL-Register to to add 9 to 8.</em></p>
  
  <p><em>3. Subtract 2.</em></p>
  
  <p><em>4. Divide by 7.</em></p>
  
  <p>My solution is:</p>
  
  <pre><code>mov al,9
  add al,8
  sub al,2
  </code></pre>
  
  <p>But how do I divide by 7? I tried something like <code>div al,7</code> but that doesn't work.</p>