ADD

ADD

Operation:
Source + Destination -->; Destination

ADD <ea>, Dn

ADD Dn, <ea>

Attributes: Size = (Byte, Word, Long, Quad)

Description: Adds the source operand to the destination operand
using binary addition, and stores the result in the destination
location. The size of the operation may be specified as byte,
word, long, or Quad.

Condition Codes:

X Set the same as the carry bit.
N Set if the result is negative. Cleared otherwise.
Z Set if the result is zero. Cleared otherwise.
V Set if an overflow is generated. Cleared otherwise.
C Set if a carry is generated. Cleared otherwise.

Example:

1)
D1 = $11111111
D2 = $22222222
ADD.B D1,D2

Result: D2 = $11111133


2)
D1 = $11111111
D2 = $22222222
ADD.W D1,D2

Result: D2 = $11113333


3)
D1 = $11111111
D2 = $22222222
ADD.L D1,D2

Result: D2 = $33333333



Note: Add can use as source also AN.
Only ADD/SUB/CMP/MOVE can use AN as source.