35.3.2.11. INTEGER LOGICAL ON MCS51





ANL	A,Rn		0101 1nnn			Logical AND
ANL	A,direct	0101 0101 [direct]
ANL	A,@Ri		0101 011i	
ANL	A,#data		0101 0100 [data]
ANL	direct,A	0101 0010 [direct]	
ANL	direct,#data	0101 0011 [direct] [data]


ORL	A,Rn		0100 1nnn			Logical OR
ORL	A,direct	0100 0101 [direct]
ORL	A,@Ri		0100 011i	
ORL	A,#data		0100 0100 [data]
ORL	direct,A	0100 0010 [direct]	
ORL	direct,#data	0100 0011 [direct] [data]

XRL	A,Rn		0110 1nnn			Logical XOR
XRL	A,direct	0110 0101 [direct]
XRL	A,@Ri		0110 011i	
XRL	A,#data		0110 0100 [data]
XRL	direct,A	0110 0010 [direct]	
XRL	direct,#data	0110 0011 [direct] [data]

CPL	A		1111 0100			Logical Complement 


Note:	MCS51 have commands which perform logic operations with bits.





Index Prev Next