Crossware

Table of Contents        Previous topic       Next topic       

MICROPROCESSOR INSTRUCTION REFERENCE->ANL

ANL    Bitwise Logical AND

Assembler Mnemonic: ANL <destination>,<source>

ANL performs a bitwise logical AND between the source and destination variables and stores the result in the destination variable.

Formats:
    
DescriptionMnemonicBytesCycles
    
a And Immediate Data:ANL A,#<data>21
b And Indirect Address:ANL A,@Ri11
c And Register:ANL A,Rn11
d And Memory:ANL A,<direct address>21
e And Carry Flag:ANL C,<bit address>22
f And Complement of Carry Flag:ANL C,/<bit addresss>22
g And Immediate to memory:ANL <direct address>,#<data>32
h And Accumulator to memory:ANL <direct address>,A21

where Ri is R0 or R1 and Rn is R0 - R7 and '/' means logical complement of address bit.
    
PSW:CACF0RS1RS0OVP
a-dN/AN/AN/AN/AN/AN/A*
e,f*N/AN/AN/AN/AN/AN/A
g,hN/AN/AN/AN/AN/AN/AN/A

(N/A: Not affected)