XOR

By Vesper Vei
1 minute read

Table of Contents

  1. XOR(xor)
    1. Basic Function
    2. Instruction Execution Process
    3. Instruction Format
    4. Behavioral Characteristics
    5. Common Uses

XOR(xor)

Basic Function

The XOR instruction performs a bitwise exclusive OR on two operands: dest = dest XOR src
If the corresponding bits are the same, the result is 0; if they are different, the result is 1.
After execution, EFLAGS is updated.

Instruction Execution Process

Instruction Format

xor r/m32, r32
xor r/m64, r64
xor r/m32, imm32
xor r/m64, imm32

Behavioral Characteristics

Common Uses



Relationship Graph

Loading graph...