Crossware

Table of Contents        Previous topic       Next topic       

MICROPROCESSOR INSTRUCTION REFERENCE->NEG

NEG    Negate (twos complement) Memory

00 - M -> M

Condition Code Register:

C  Set if result not equal to zero, else cleared
V  Set if result equals %1000000, else cleared
Z  Set if result Zero, else cleared
N  Set if result Negative, else cleared
I  Not affected
H  Not affected


    
Addressing modeAssembler syntax
Index X:NEG <exprn.>,X
Index Y:NEG <exprn.>,Y
Extend:NEG <exprn.>