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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!