CMPI

CMPI

Operation:
Destination - Immediate Data

Assembler Syntax:
CMPI #<data>, <ea>

Attributes: Size = (Byte, Word, Long)

Description: Subtracts the immediate data from the destination
operand and sets the condition codes according to the result;
the destination location is not changed. The size of the operation
may be specified as byte, word, or long. The size of the im-
mediate data matches the operation size.

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.