Question: I want to know how to extract, remove,insert, and replace bits in registers for Arm assembly into a final register using and,or,xor, lsl,lsr,mov and ldr
I want to know how to extract, remove,insert, and replace bits in registers for Arm assembly into a final register using and,or,xor, lsl,lsr,mov and ldr instructions?? Example: if I have 10110110 and want to take the last four bits and place them in the front, or the first four bits and place them last. Furthermore, if I wanted to take two bits from anywhere and insert or replace them. Don't use loops use only the instructions I posted and please add comments.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
