Table of Contents
Previous topic Next topic
MICROPROCESSOR INSTRUCTION REFERENCE->ADD
ADD Add Binary
Compatibility: 68000, 68010, 68020, CPU32 families
Destination + Source -> Destination
Assembler Syntax: | ADD <ea>,Dn |
| ADD Dn,<ea> |
Source <ea> -all modes
Destination <ea>- alterable memory
Size: Byte, Word or 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 |
|
| ADD | Dn,Dn | | |
| ADD | An,Dn (not byte) | | |
| ADD | (An),Dn | ADD | Dn,(An) |
| ADD | (An)+,Dn | ADD | Dn,(An)+ |
| ADD | -(An),Dn | ADD | Dn,-(An) |
| ADD | (d16,An),Dn | ADD | Dn,(d16,An) |
| ADD | (d8,An,Xn),Dn | ADD | Dn,(d8,An,Xn) |
| ADD | (bd,An,Xn),Dn 2 | ADD | Dn,(bd,An,Xn) 2 |
| ADD | ([bd,An,Xn],od),Dn 1 | ADD | Dn,([bd,An,Xn],od) 1 |
| ADD | ([bd,An],Xn,od),Dn 1 | ADD | Dn,([bd,An],Xn,od) 1 |
| ADD | (xxx).W,Dn | ADD | Dn,(xxx).W |
| ADD | (xxx).L,Dn | ADD | Dn,(xxx).L |
| ADD | #(data),Dn | | |
| ADD | (d16,PC),Dn | | |
| ADD | (d8,PC,Xn),Dn | | |
| ADD | (bd,PC,Xn),Dn | | |
| ADD | ([bd,PC,Xn],od),Dn | | |
| ADD | ([bd,PC],Xn,od),Dn | | |
1 68020 only
2 68020 and CPU32 only