 | 8051 Instruction Set Manual |  |
|
|
| ANLThe ANL instruction performs a bitwise logical AND operation between the specified byte or bit operands and stores the result in the destination operand. Note When this instruction is used to modify an output port, the value used as the port data will be read from the output data latch, not the input pins of the port. See Also: ORL, XRL | Bytes | 2 | | Cycles | 1 | | Encoding | | | Operation |
ANL
A = A AND immediate
| | Example |
ANL A, #3Fh
|
| Bytes | 1 | | Cycles | 1 | | Encoding | | | Operation |
ANL
A = A AND (Ri)
| | Example |
ANL A, @R0
|
| Bytes | 2 | | Cycles | 1 | | Encoding | | | Operation |
ANL
A = A AND (direct)
| | Example |
ANL A, 40h
|
| Bytes | 1 | | Cycles | 1 | | Encoding | | | Operation |
ANL
A = A AND Rn
| | Example |
ANL A, R4
|
| Bytes | 2 | | Cycles | 2 | | Encoding | | | Operation |
ANL
C = C AND NOT (bit)
| | Example |
ANL C, /22h
|
| Bytes | 2 | | Cycles | 2 | | Encoding | | | Operation |
ANL
C = C AND (bit)
| | Example |
ANL C, 22h
|
| Bytes | 2 | | Cycles | 1 | | Encoding | | | Operation |
ANL
(direct) = (direct) AND A
| | Example |
ANL 40h, A
|
| Bytes | 3 | | Cycles | 2 | | Encoding | | | Operation |
ANL
(direct) = (direct) AND immediate
| | Example |
ANL 30h, #77h
|
Related Knowledgebase Articles |
|