Crossware

Table of Contents        Previous topic       Next topic       

MICROPROCESSOR INSTRUCTION REFERENCE->SUB

SUB    Subtract Binary


Destination - Source  -> Destination

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

Size: Long

Subtracts the source operand from the destination operand and stores the result in the destination.


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 borrow, else cleared
X    Set same as carry

    
Allowable Addressing Modes
    
<ea>,DnDn,<ea>
    
Dn,Dn
An,Dn
(An),Dn Dn,(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