Datasheet

Chapter 2. ColdFire Core 2-41
ColdFire Instruction Set Architecture Enhancements
CMPA Compare Address CMPA
Operation: Destination – Source cc
Assembler Syntax: CMPA <ea>y, Ax
Attributes: Size = word, long
Description: Operates similarly to CMP, but is used when the destination register is an
address register rather than a data register. The operation size can be word or longword.
Word-length source operands are sign-extended to 32 bits for comparison.
Condition Codes:
Instruction Fields:
Register eld—Species the destination register.
Opmode eld:
Effective address eld species the source operand; use addressing modes in the
following table:
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
∗∗∗∗
1514131211109876543210
Instruction
Format:
1011 REGISTER OPMODE EFFECTIVE ADDRESS
MODE REGISTER
Byte Word Long Operation
011 111 Ax - <ea>y
Addressing Mode Mode Register Addressing Mode Mode Register
Dy 000 reg. number:Dy (d
8
,Ay,Xi) 110 reg. number:Ay
Ay (word/longword operand only) 001 reg. number:Ay (xxx).W 111 000
(Ay) 010 reg. number:Ay (xxx).L 111 001
(Ay) + 011 reg. number:Ay #<data> 111 100
– (Ay) 100 reg. number:Ay (d
16
,PC) 111 010
(d
16
,Ay) 101 reg. number:Ay (d
8
,PC,Xi) 111 011
CMPA V2, V3 Core V4 Core
Opcode present Yes Yes
Operand sizes supported .l .w, .l