Crossware

Table of Contents        Previous topic       Next topic       

MICROPROCESSOR INSTRUCTION REFERENCE->NEG

NEG    Negate

Compatibility: 68000, 68010, 68020 and CPU32 families.


0 - Destination -> Destination


Assembler Syntax:   NEG <ea>


<ea> - data alterable

Size:  Byte, Word, Long

Subtracts the destination operand from zero and stores the result in the destination location.


Condition Codes:

N    Set if result negative, else cleared
Z    Set if result zero, else cleared
V    Set if overflow, else cleared
C    Cleared if result is zero, else set
X    Set same as carry bit

    
Allowable Addressing Modes
    
<ea>
    
NEGDn
NEG(An)
NEG(An)+
NEG-(An)
NEG(d16,An)
NEG(d8,An,Xn)
NEG(bd,An,Xn) 2
NEG([bd,An,Xn],od) 1
NEG([bd,An],Xn,od) 1
NEG(xxx).W
NEG(xxx).L

1   68020 only
2   68020 and CPU32 only