Datasheet

2-42 MCF5407 User’s Manual
ColdFire Instruction Set Architecture Enhancements
CMPI Compare Immediate CMPI
Operation: Destination – Immediate Data cc
Assembler Syntax: CMPI #<data>, Dx
Attributes: Size = byte, word, long
Description: Operates similarly to CMP, but is used when the source operand is immediate
data. The size of the operation may be specied as byte, word, or longword. The size of the
immediate data matches the operation size.
Condition Codes:
Instruction Fields:
Register eld—Destination data register.
Size eld:
Note that if size = byte, the immediate is contained in bits [7:0]
of the single extension word. If size = word, the immediate is
contained in bits[15:0] of the single extension word. If
size = long, the immediate is contained in the two extension
words.
X N Z V C 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
∗∗∗∗
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Instruction
Format:
00001100 SIZE 0 0 0 REGISTER
UPPER WORD
LOWER WORD
Byte Word Long Operation
00 01 10 Dx - #<data>
CMPI V2, V3 Core V4 Core
Opcode present Yes Yes
Operand sizes supported .l .b, .w, .l