Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
CMP Instruction
 Detail Key Example                     Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Title:    Compare Two Operands                  Flags: O D I T S Z A P C
                                                         ═════════════════
  Syntax:   CMP dest,src                                 ±       ± ± ± ± ±
 
  See also: TEST, Jcond, CMPS, SUB, CMPXCHG
 
  Description:
 
     Compares two operands as a test for a subsequent conditional jump
     or set instruction. CMP does this by subtracting the source
     operand from the destination operand and setting the flags
     according to the result.
 
     CMP is the same as the SUB instruction, except that the result is
     not stored.
                                    -♦-