Operands
Op 1
Dn/An/(An)/Im/ea/(An, Xn)
Op 2
Dn/An
Compares the second operand with the first operand, it sets the flags accordingly which will be used by the branching instructions. Works by subtracting the first operand from the second operand and setting the flags. If the second operand is an address register, the CMPA instruction is used instead.