title: A program that checks which number is bigger
body: <p>I'm studying assembly (8086) and we learned about jumps and we were told to write a program that will get 2 numbers from 2 memory cells and will put the bigger one in another memory cell.
  So I wrote:</p>
  <pre><code>mov al,[0]
  mov bl,[1]
  cmp al,bl
  js eq
  jns noteq
  eq:
      mov [10h],bl
      jmp end
  noteq:
      mov [10h],al
      jmp end
  end:
      hlt
  </code></pre>
  <p>But I was told it won't work because I need to change the <code>js</code> and <code>jns</code> to <code>jc</code> and <code>jnc</code> in case both of the numbers are negative but when I ran it on an emulator it worked both ways. Who's right? Me or the teacher, or maybe both of our ways will work either way? If you say the teacher please explain why, because the teacher couldn't.</p>
  <p>EDIT: We could only use <code>JC</code> <code>JNC</code> <code>JZ</code> <code>JNZ</code> <code>JS</code> <code>JNS</code></p>