NEGX

NEGX

Operation:
0 - (Destination) - X -->; Destination

Compatibility: 68000 Family

Assembler Syntax:
NEGX <ea>

Attributes: Size = (Byte, Word, Long)

Description: Subtracts the destination operand and the extend
bit from zero and stores the result in the destination location.
The size of the operation is specified as byte, word, or long.

Condition Codes:
\c22222
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.

Note: Normally the Z condition code bit is set via programming
before the start of the operation. This allows successful
tests for zero results upon completion of multiple
precision operations.

Instruction Format:
\i1-+------2Sz,u6Effective Address,3Mode,3Reg,

Instruction Fields:
Sz field -- Specifies the size of the operation.
00 -- Byte operation.
01 -- Word operation.
10 -- Long operation.
Effective Address field -- Specifies the destination operand.
Only data alterable addressing modes are allowed
as shown:
\mBF8

Related Instructions:
NEG,467
.467469