ubfx

Unsigned Bit Field Extract (A32)

UBFX<c> <Rd>, <Rn>, #<lsb>, #<width>

Extracts bits from a register and zero-extends them.

Details

The Unsigned Bit Field Extract instruction extracts bits from a register and zero-extends them.

Pseudocode Operation

// Extracts bits from a register and zero-extends them

Example

UBFX r0, r1, #0, #width

Encoding

Binary Layout
cond
0111
111
width-1
Rd
lsb
101
Rn
 
Format Data Proc
Opcode 0x07E00050
Extension A32 (Base)

Operands

  • Rd
    Destination general-purpose register
  • Rn
    First source / base general-purpose register
  • lsb
    Start Bit
  • width
    Width