| |||
| 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,Rm, #lsb, #width
where:
opis either SBFX or UBFX.
condis an optional condition code (see Conditional execution).
Rdis the destination register.
Rmis 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
(1+).lsb
Do not use r15 for Rdor Rn