bextr

Bit Field Extract

BEXTR r32, r/m32, r32

Extracts sequence of bits from source using index/length.

Details

The Bit Field Extract instruction extracts sequence of bits from source using index/length.

Pseudocode Operation

// Extracts sequence of bits from source using index/length

Example

BEXTR eax, ebx, eax

Encoding

Binary Layout
VEX
+0
opcode
+3
ModRM
+4
 
Format VEX
Opcode C4 ... F7
Extension BMI1

Operands

  • dest
    32-bit general-purpose register (e.g. EAX)
  • src1
    32-bit register or memory
  • src2
    32-bit general-purpose register (e.g. EAX)