ANL - 8051
The 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.
Syntax
ANL A,Rn
Example
;Performs A=A and Src
ANL A,#30h ;2 bytes 1 cycle
ANL A,@Ri ;1 byte 1 cycle
ANL A,30h ;2 bytes 1 cycle
ANL C,/22h ;And Carry and not(bit) 2 bytes 2 cycles
ANL C,22h ;2 bytes 2 cycles
ANL 30h,A ;2 bytes 1 cycle
ANL 30h,#77h ;3 bytes 2 cycle
Output / Return Value
Limitations
Alternatives / See Also
Reference