NEG Instruction



The instruction NEG returns the twos complement of an operand given as an effective address.

ADDRESS METHODS: Dn, (An), (An)+, -(An), x(An), x(An,xr.s), x.w, x.l

DATA LENGTH: Byte, word, longword
FLAGS: X - Clear if the result is zero, otherwise it is set.
N - S
Z - S
C - Same as X
V - S

SYNTAX: NEG <ea>

EXAMPLE CODE:       

   NEG    D0.W    if D0 contained 2, D0 would become 0000FFFE