title: Setting and Clearing Flags
body: <p>I'm having trouble trying to set a zero flag. I have done some research online but it has come to confuse me even more. Correct me if I'm wrong but it's my understanding that you can use MOV, ADD, SUB, INC, and DEC and set and clear flags? So would something like this work..?</p>
  
  <pre><code>.data
  Num1 = 18
  Num2 = 18
  
  .code
  main PROC
      sub    num2, num1
  main ENDP
  END main
  </code></pre>
  
  <p>and that would set a ZF for example? If that's the case then how would I clear it?</p>