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 |
|
| Dn,Dn | | |
| An,Dn | | |
| (An),Dn | | Dn,(An) |
| (An)+,Dn | | Dn,(An)+ |
| -(An),Dn | | Dn,-(An) |
| (d16,An),Dn | | Dn,(d16,An) |
| (d8,An,Xn),Dn | | Dn,(d8,An,Xn) |
| (xxx).W,Dn | | Dn,(xxx).W |
| (xxx).L,Dn | | Dn,(xxx).L |
| #(data),Dn | | |
| (d16,PC),Dn | | |
| (d8,PC,Xn),Dn | | |