Email: Password: Remember Me | Create Account (Free)
8051/8052 Instruction: ANL

Operation:ANL
Function:Bitwise AND
Syntax:ANL operand1, operand2

InstructionsOpCodeBytesCyclesFlags
ANL iram addr,A0x5221None
ANL iram addr,#data0x5332None
ANL A,#data0x5421None
ANL A,iram addr0x5521None
ANL A,@R00x5611None
ANL A,@R10x5711None
ANL A,R00x5811None
ANL A,R10x5911None
ANL A,R20x5A11None
ANL A,R30x5B11None
ANL A,R40x5C11None
ANL A,R50x5D11None
ANL A,R60x5E11None
ANL A,R70x5F11None
ANL C,bit addr0x8221C
ANL C,/bit addr0xB021C


Description: ANL does a bitwise "AND" operation between operand1 and operand2, leaving the resulting value in operand1. The value of operand2 is not affected. A logical "AND" compares the bits of each operand and sets the corresponding bit in the resulting byte only if the bit was set in both of the original operands, otherwise the resulting bit is cleared.

See Also: ORL, XRL, Instruction Set