Command: CMP - Compare Two Operands
Arguments: SRC1: Immediate, Register or memory location; SRC2: Immediate, Register or memory location
Usage: CMP SRC1, SRC2
Effects: :=SRC1-SRC2; Flags are set in the same way as the SUB instruction does, but no result is of the substraction is not saved.
Flags to be set: The OF, SF, ZF, AF, CF, and PF flags are set according to the result.
Misc: Usually the next operation would be a Jcc or CMOVcc to perform a operation according to the result of the comparison. Only one memory argument is allowed and both arguments have to be of the same size (8, 16 or 32bit)