qa.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CMP
   Summary  Detail  Example  Key to Flags
──────────────────────────────────────────────────────────────────────────────
 
Compare Two Operands                             Flags:  O D I T S Z A P C
Syntax:  CMP dest,src                                    ═════════════════
                                                         ±       ± ± ± ± ±
 
  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.
                                    -♦-