AND

AND

Operation:
Source Destination -->; Destination

Assembler Syntax:
AND <EA>, DN
AND DN, <EA>

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

Description: Performs an AND operation of the source
operand with the destination operand and stores the result
in the destination location. The size of the operation can
be specified as byte, word, or long. The contents of an
address register may not be used as an operand.

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.

Address Mode
Dn
An
#data
(An)
(An)+
-(An)
(d16,An)
(d32,An)
(d8,An,Xn)
(d16,An,Xn)
(d32,An,Xn)
(d16,PC)
(d32,PC)
(d8,PC,Xn)
(d16,PC,Xn)
(xxx).w
(xxx).L
([bd,An,Xn],od)
([bd,An],Xn,od)

Example:

1)
D1 = $12345678
D2 = $0000FFF0
AND.L D2,D1

Result: D1 = $00005670