ANDI

ANDI

Operation:
Immediate Data \sL Destination -->; Destination

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

Attributes: Size = (Byte, Word, Long)

Description: Performs an AND operation on the immediate data
and 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 Not affected.
N Set if the most significant bit of the result is set.
Cleared otherwise.
Z Set if the result is zero. Cleared otherwise.
V Always cleared.
C Always cleared.

Example:

1)
D1 = $12345678
ANDI.L #$000000F,D1

Result: D1 = $00000008