SHR

By Vesper Vei
1 minute read

Table of Contents

  1. SHR(shr)
    1. Basic purpose
    2. Instruction execution process
    3. Instruction format
    4. Behavioral characteristics
    5. Common uses

SHR(shr)

Basic purpose

SHR (logical right shift) shifts the operand right by n bits, filling the left side with 0s.
Mathematically: dest = floor(dest / 2^n)

Instruction execution process

Instruction format

shr r/m32, imm8
shr r/m64, imm8
shr r/m32, cl
shr r/m64, cl

Behavioral characteristics

Common uses



Relationship Graph

Loading graph...