OR: Logical OR: The OR instruction carries out the OR operation in the similar way as described in case of the AND operation. The restriction on source and destination operands are also the similar as in case of AND operation. The instance are as follows:Example :
1. OR AX, 0098H2. OR R AX, BX3. OR R AX, [5000H]4. OR [5000H], 0008HThe contents of AX are considering 3FOFH, then the first example instruction will be carried out as given below.
So the result 3F9FH will be stored in the AX register.