Table of Contents        Previous topic       Next topic       


CMPI    Compare Immediate

Destination - Immediate Data

Assembler Syntax:CMPI.L #<data>,Dn
CMPI #<data>,Dn (V4 and above) #<data>,Dn (V4 and above)

Size:    Long plus for ColdFire 4 Series Byte and Word

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 immediate data matches the operation size.

Condition Codes:

N    Set if result negative, else cleared
Z    Set if result zero, else cleared
V    Set if overflow, else cleared
C    Set if borrow, else cleared
X    Not affected