Destination - Source -->; cc
Compatibility: 68000 Family
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.
Register field -- Specifies the destination address register.
011 -- Word operation. The source operand is sign
extended and the operation is performed on
the address register using all 32 bits.
111 -- Long operation.
Effective Address field -- Determines the source operand. All
addressing modes are allowed as shown: