With the arm BFI instruction we can set bits at a specified position but the position is fix. How can this be done more flexible:
BFI.w R0, r1, #1, #4 // <