ADDI

ADDI

Operation:
Immediate Data + Destination -->; Destination

Assembler Syntax:
ADDI #<data>, <ea>

Attributes: Size = (Byte, Word, Long)

Description: Adds the immediate data to the destination operand,
and stores the result in the destination location. The size of
the operation may be specified as byte, word, or long.
The size of the immediate data matches the operation size.

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
ADDI.W #$8888,D1

Result: D1 = $11119999


2)
D1 = $22221111
ADDI.W #$FFFF,D1

Result: D1 = $22221110