| |||
| Home > ARM and Thumb Instructions > Packing and unpacking instructions > SBFX and UBFX | |||
Signed and Unsigned Bit Field Extract. Copies adjacent bits from one register into the least significant bits of a second register, and sign extends or zero extends to 32 bits.
op{cond}Rd,Rn, #lsb, #width
where:
opis either SBFX or UBFX.
condis an optional condition code.
Rdis the destination register.
Rnis the source register.
lsbis the bit number of least significant bit in the bitfield, in the range 0 to 31.
widthis the width of the bitfield, in the range 1 to
(32-).lsb
You cannot use PC for any register.
You can use SP in ARM instructions but these are deprecated in ARMv6T2 and above. You cannot use SP in Thumb instructions.
These ARM instructions are available in ARMv6T2 and above.
These 32-bit Thumb instructions are available in ARMv6T2 and above.
There are no 16-bit Thumb versions of these instructions.