AND
Bitwise-Logical AND
13-62
Syntax AND
src, dst
Operands
dst
AND
src
dst
Operands
src
general addressing modes (G):
0 0 any CPU register
0 1 direct
1 0 indirect (disp = 0–255, IR0, IR1)
1 1 immediate (not sign extended)
dst
any CPU register
Opcode
31 2423 16 8 7 015
0000001
dst src
01 G
Description The bitwise-logical AND between the
dst
and
src
operands is loaded into the
dst
register. The
dst
and
src
operands are assumed to be unsigned integers.
Cycles 1
Status Bits These condition flags are modified only if the destination register is R7–R0.
LUF Unaffected
LV Unaffected
UF 0
NMSB of the output
Z1 if a 0 result is generated; 0 otherwise
V0
CUnaffected
OVM Operation is not affected by OVM bit value.
Example AND R1,R2
Before Instruction After Instruction
R1 00 0000 0080 R1 00 0000 0080
R2 00 0000 0AFF R2 00 0000 0080
LUF 0LUF 0
LV 0LV 0
UF 0UF 0
N0N0
Z0Z0
V0V0
C1C1
Mode Bit