OR

By Vesper Vei
1 minute read

Table of Contents

  1. OR (or)
    1. Basic function
    2. Instruction format
    3. Behavioral characteristics
    4. Examples
    5. Common uses

OR (or)

Basic function

OR performs a bitwise logical OR operation:

x1 = x1 | x2

Instruction format

or x1, x2

The same constraints as AND apply:

Behavioral characteristics

Examples

or eax, 1
; 设置最低位
or rax, rbx
or [rbp-8], 0x80

Common uses



Relationship Graph

Loading graph...