Crossware

Table of Contents        Previous topic       Next topic       

MICROPROCESSOR INSTRUCTION REFERENCE->ADD

ADD    Add Binary

Destination + Source  -> Destination


Assembler Syntax:ADD.L <ea>,Dn
ADD.L Dn,<ea>

Size: Long

Add the source operand to the destination operand using binary addition and store 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  Set if carry generated, else cleared
X  Set same as carry

    
Allowable Addressing Modes
    
<ea>,Dn Dn,<ea>
    
Dn,Dn
An,Dn
(An),DnDn,(An)
(An)+,DnDn,(An)+
-(An),DnDn,-(An)
(d16,An),DnDn,(d16,An)
(d8,An,Xn),DnDn,(d8,An,Xn)
(xxx).W,DnDn,(xxx).W
(xxx).L,DnDn,(xxx).L
#(data),Dn
(d16,PC),Dn
(d8,PC,Xn),Dn