Integer Instructions
MOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 4-143
NEG Negate NEG
(M68000 Family)
Operation: 0 – Destination → Destination
Assembler
Syntax: NEG < ea >
Attributes: Size = (Byte, Word, Long)
Description: Subtracts the destination operand from zero and stores the result in the
destination location. The size of the operation is specified as byte, word, or long.
Condition Codes:
X — Set the same as the carry bit.
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 — Cleared if the result is zero; set otherwise.
Instruction Format:
XNZVC
∗∗∗∗∗
1514131211109876543210
01000100 SIZE
EFFECTIVE ADDRESS
MODE REGISTER
Comments to this Manuals