sbfx
Signed Bit Field Extract (A32)
SBFX<c> <Rd>, <Rn>, #<lsb>, #<width>
Extracts bits from a register and sign-extends them.
Details
The Signed Bit Field Extract instruction extracts bits from a register and sign-extends them.
Pseudocode Operation
// Extracts bits from a register and sign-extends them
Example
SBFX r0, r1, #0, #width
Encoding
Binary Layout
cond
0111
101
width-1
Rd
lsb
101
Rn
Operands
-
Rd
Destination general-purpose register -
Rn
First source / base general-purpose register -
lsb
Start Bit -
width
Width