title: what is the diffrence between zero flag and carry flag ?
body: <p>What is the difference between the zero flag and carry flag? </p>
  
  <p>For zero flag it said</p>
  
  <pre><code>mov ax , 0FFFF ; 
  inc ax ; AX= 0 , ZF=1
  </code></pre>
  
  <hr>
  
  <p>For carry flag it said</p>
  
  <pre><code>mov al , 0FFh
  add al , 1  ; CF=1,AL=00
  </code></pre>
  
  <p>The value of <code>AL</code> is equal to zero so why is the zero flag not set to 1? </p>