shr

Shift Logical Right

SHR r/m, imm8

Shifts bits right, filling with zeros.

Details

The Shift Logical Right instruction shifts bits right, filling with zeros.

Pseudocode Operation

DEST <- DEST >> count  // logical right shift (zero fill)

Example

SHR rbx, 3

Encoding

Binary Layout
C1
+0
ModRM
+1
 
Format Legacy
Opcode C1 /5
Extension Base

Operands

  • dest
    Register or memory operand
  • src
    8-bit signed immediate