Destination - Source -->; cc

Compatibility: 68000 Family

Assembler Syntax:
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.

Condition Codes:
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.

Instruction Format:
\i1+-++3Reg,3Opmode,u6Effective Address,3Mode,3Reg,

Instruction Fields:
Register field -- Specifies the destination address register.
Opmode field:
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:

Related Instructions: