Destination - Source -->; cc
CMPA <ea>, An
Attributes: Size = (Word, Long)
Description: Subtracts the source operand from the destination
address register and sets the condition codes according to the
result; the data register is not changed. The size of the operation
can be word or long.
X Not affected.
N Set if the result is negative. Cleared otherwise.
Z Set if the result is zero. Cleared otherwise.
V Set if an overflow occurs. Cleared otherwise.
C Set if a borrow occurs. Cleared otherwise.
CMPA does the same operation as SUBA but does
set the flags and does not update any registers.
CMPA is the only instruction which works with ADDRESS registers which set any flags.