| |
Logical And
86/88 |
Y |
186 |
Y |
286 |
Y |
386 |
Y |
486 |
Y |
AND destination, source |
Ovfl |
0 |
Dir |
N |
Int |
N |
Trap |
N |
Sign |
Y |
Zero |
Y |
Aux |
? |
Prty |
Y |
Carry |
0 |
AND performs a bit-by-bit logical AND operation on its operands and
stores the result in destination. The operands may be words or bytes.
AND Instruction Logic
Destination Source Result
0 0 0
0 1 0
1 0 0
1 1 1
AND sets each bit of the result to 1 if both of the corresponding bits
of the operands are 1.
------------------------------------ Timing ----------------------------------
OpCode Instruction 386 286 86
20/r AND r/m8,r8 2/7 2/7 3/16+EA
21/r AND r/m16,r16 2/7 2/7 3/16+EA
21/r AND r/m32,r32 2/7
22/r AND r8, r/m8 2/6 2/7 3/9+EA
23/r AND r16, r/m16 2/6 2/7 3/9+EA
23/r AND r32, r/m32 2/6
24 ib AND AL, imm8 2 3 4
25 iw AND AX, imm16 2 3 4
25 id AND EAX, imm32 2
80/4 ib AND r/m8, imm8 2/7 3/7 4/17+EA
81/4 iw AND r/m16, imm16 2/7 3/7 4/17+EA
81/4 id AND r/m32, imm32 2/7
83/4 ib AND r/m16, imm8 2/7
83/4 ib AND r/m32, imm8 2/7
------------------------------------ Logic -----------------------------------
destination = destination AND source
See Also NOT OR XOR Flags |