Bit Field Insert.
is an optional condition code.
is the destination register.
is the source register.
is the least significant bit that is to be copied.
is the number of bits to be copied.
widthmust not be 0, and (
lsb) must be less than 32.
Inserts adjacent bits from one register into another.
Rd, starting at
lsb, are replaced by
width bits from
Rn, starting at bit. Other bits in
Rd are unchanged.
You cannot use PC for any register.
You can use SP in the
BFI ARM instruction
but this is deprecated in ARMv6T2 and above. You cannot use SP in
BFI Thumb instruction.
BFI instruction does not change
This ARM instruction is available in ARMv6T2 and above.
This 32-bit Thumb instruction is available in ARMv6T2 and above.
There is no 16-bit version of this instruction in Thumb.