ubfx
Unsigned Bit Field Extract (Thumb)
UBFX <Rd>, <Rn>, #<lsb>, #<width>
Extracts and zero-extends bits.
Details
The Unsigned Bit Field Extract instruction extracts and zero-extends bits.
Pseudocode Operation
// Extracts and zero-extends bits
Example
UBFX r0, r1, #0, #width
Encoding
Binary Layout
111100111100
Rn
0
imm3
Rd
imm2
Operands
-
Rd
Destination general-purpose register -
Rn
First source / base general-purpose register