sbfx

Signed Bit Field Extract (Thumb)

SBFX <Rd>, <Rn>, #<lsb>, #<width>

Extracts and sign-extends bits.

Details

The Signed Bit Field Extract instruction extracts and sign-extends bits.

Pseudocode Operation

// Extracts and sign-extends bits

Example

SBFX r0, r1, #0, #width

Encoding

Binary Layout
111100110100
Rn
0
imm3
Rd
imm2
 
Format Thumb Bitfield
Opcode 0xF3400000
Extension A32 (Base)

Operands

  • Rd
    Destination general-purpose register
  • Rn
    First source / base general-purpose register