or

Logical OR

OR r/m, r

Performs bitwise OR.

Details

The Logical OR instruction performs bitwise OR.

Pseudocode Operation

DEST <- DEST OR SRC
// Flags affected: SF, ZF, PF (OF=CF=0)

Example

OR rbx, rax

Encoding

Binary Layout
08+ow
+0
ModRM
+1
 
Format Legacy
Opcode 08-0D
Extension Base

Operands

  • dest
    Register or memory operand
  • src
    General-purpose register