NEGX Instruction
The instruction NEGX (NEGate with eXtend) returns the twos complement from a binary number with multi-precision.
ADDRESS METHODS: Dn, (An), (An)+, -(An), x(An), x(An,xr.s), x.w, x.l
DATA LENGTH: Byte, word, longword
FLAGS: |
X - Set if loan, else cleared |
N - S |
Z - Set if the result is not zero, else unaffected |
C - Same as X |
V - S |
SYNTAX: NEGX <ea>
EXAMPLE CODE:
NEGX D0.W
if D0 contained 2, X = 1, D0 would become 0000FFFD