[destination] ← 0 - [destination] - [X]
NEGX <ea>
Size
byte, word, longword
The operand addressed as the destination and the extend bit are subtracted from zero. NEGX
is the same as NEG
except that the X-bit is also subtracted from zero.
X | N | Z | V | C |
---|---|---|---|---|
* | * | * | * | * |
The Z-bit is cleared if the result is non-zero and is unchanged otherwise. The X-bit is set to the same value as the C-bit.
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.