CMPA

CMPA

Operation:
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:
\c32222
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:
\mFFF

Related Instructions:
CMP,433
CMPI,435
CMPM,436
CMP2,437
.433435