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
24 23
16
8 7
0
15
0 0 0 0 0 0 1
dst
src
0 1
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
N
MSB of the output
Z
1 if a 0 result is generated; 0 otherwise
V
0
C
Unaffected
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
0
LUF
0
LV
0
LV
0
UF
0
UF
0
N
0
N
0
Z
0
Z
0
V
0
V
0
C
1
C
1
Mode Bit