title: MASM division for negative number
body: <p>I'm trying divide two numbers in assembly[Irvine-Intel x86 processor].
  Here is my code:</p>
  
  <pre><code>    mov eax, 4
  mov edx, 0
  mov ebx, 2
  div ebx
  </code></pre>
  
  <p>I get the correct answer for the division, but when i change the value to a negative number, it does not give me the correct answer.</p>
  
  <pre><code>    mov eax, -4
  mov edx, 0
  mov ebx, 2
  div ebx
  </code></pre>
  
  <p>As I know, the "div" is unsigned divide. So how if I want to do division with negative number?</p>