You are here : assembly8086AND

AND - 8086

Logical AND between all bits of two operands. Result is stored in operand1.
These Rules Apply :
1 AND 1 = 1
1 AND 0 = 0
0 AND 1 = 0
0 AND 0 = 0


Syntax

AND REG, memory
AND memory, REG
AND REG, REG
AND memory, immediate
AND REG, immediate


Example

MOV AL, 'a'		;AL=01100001b
AND AL, 11011111b	;AL=01000001b ('A')
RET


Output / Return Value


Limitations


Alternatives / See Also


Reference