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.
Syntax : ANL operand1,operand2
Example : ANL A,R0
It will perform the and operation between accumulator and R0. The result is stored in the accumulator.
Syntax : ANL operand1,operand2
Example : ANL A,R0
It will perform the and operation between accumulator and R0. The result is stored in the accumulator.
- Instruction
- Opcode
- Bytes
- Flags
- ANL iram_addr,A
- 0x52
- 2
- None
- ANL iram_addr,#data
- 0x53
- 3
- None
- ANL A,#data
- 0x54
- 2
- None
- ANL A,iram_addr
- 0x55
- 2
- None
- ANL A,@R0
- 0x56
- 2
- None
- ANL A,@R1
- 0x57
- 2
- None
- ANL A,R0
- 0x58
- 1
- None
- ANL A,R1
- 0x59
- 1
- None
- ANL A,R2
- 0x5A
- 1
- None
- ANL A,R3
- 0x5B
- 1
- None
- ANL A,R4
- 0x5C
- 1
- None
- ANL A,R5
- 0x5D
- 1
- None
- ANL A,R6
- 0x5E
- 1
- None
- ANL A,R7
- 0x5F
- 1
- None
- ANL C,bit_addr
- 0x82
- 2
- C
- ANL C,bit_addr
- 0xB0
- 2
- C