Question: In Arm Assembly, there are multiple commands to shift bits such as Logical Shift Left ( LSL ) , Logical Shift Right ( LSR )

In Arm Assembly, there are multiple commands to shift bits such as Logical Shift Left (LSL), Logical Shift Right (LSR), Arithmetic Shift Right (ASR), Rotate Right (ROR), etc. I understand that these can be used to shift the value in Rm for a maximum of 31 bits, replacing shifted bits with 0s. But, what I am still struggling to understand is in what scenario to use each of these different operations. For example, do we only use LSL/LSR when we was to do bit multiplication?

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 Programming Questions!