[destination] - <immediate data>
CMPI #<data>,<ea>
Size
byte, word, longword
Subtract the immediate data from the destination operand and set the condition codes accordingly - the destination is not modified. CMPI
permits the comparison of a literal with memory.
X | N | Z | V | C |
---|---|---|---|---|
- | * | * | * | * |
Dn | An | (An) | (An)+ | ‑(An) | (d,An) | (d,An,Xi) | ABS.W | ABS.L | (d,PC) | (d,PC,Xn) | imm |
---|---|---|---|---|---|---|---|---|---|---|---|
✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
From MOTOROLA M68000 FAMILY Programmer's reference manual. Copyright 1992 by Motorola Inc./NXP. Adapted with permission.