Logical OR                                  

86/88

Y

186

Y

286

Y

386

Y

486

Y

OR destination, source

Ovfl

0

Dir

N

Int

N

Trap

N

Sign

Y

Zero

Y

Aux

?

Prty

Y

Carry

0

    OR performs a bit-by-bit logical inclusive OR operation on its
    operands and returns the result to destination.  The operands may be
    words or bytes.

                       OR Instruction Logic
                   Destination  Source    Result
                        0         0         0
                        0         1         1
                        1         0         1
                        1         1         1

    OR sets each bit of the result to 1 if either or both of the
    corresponding bits of the operands are 1.

------------------------------------ Timing ----------------------------------

OpCode          Instruction             386     286     86
0C ib           OR AL, imm8             2       3       4
0D iw           OR AX, imm16            2       3       4
0D id           OR EAX, imm32           2
80/1 ib         OR r/m8, imm8           2/7     3/7     4/17+EA
81/1 id         OR r/m16, imm16         2/7     3/7     4/17+EA
81/1 id         OR r/m32, imm32         2/7
83/1 ib         OR r/m16, imm8          2/7
83/1 ib         OR r/m32, imm8          2/7
08/r            OR r/m8, r8             2/6     2/7     3/16+EA
09/r            OR r/m16, r16           2/6     2/7     3/16+EA
09/r            OR r/m32, r32           2/6
0A/r            OR r8, r/m8             2/7     2/7     3/9+EA
0B/r            OR r16, r/m16           2/7     2/7     3/9+EA
0B/r            OR r32, r/m32           2/7

------------------------------------ Logic -----------------------------------

        destination = destination OR source

See Also AND NOT XOR Flags


Copyright © 1985 to 2022 Beta Systems                            Last modified: Wednesday, January 05, 2022 .