You are here : assembly8086OR

OR - 8086

Logical OR between all bits of two operands.

Result is stored in first operand.

These rules apply:

  • 1 OR 1 = 1
  • 1 OR 0 = 1
  • 0 OR 1 = 1
  • 0 OR 0 = 0


Syntax

OR REG, memory
OR memory, REG
OR REG, REG
OR memory, immediate
OR REG, immediate


Example

MOV AL, 'A' 		; AL = 01000001b
OR AL, 00100000b 	; AL = 01100001b ('a')
RET 


Output / Return Value


Limitations


Alternatives / See Also


Reference