Question: ARM assembly Kiel Write an ARM assembly program that will count the number of bits set to 0 in register 1 and save the count

ARM assembly Kiel  ARM assembly Kiel Write an ARM assembly program that will count

Write an ARM assembly program that will count the number of bits set to 0 in register 1 and save the count in register 0. For example, if r1 is initialized as follows: LDR r1,=0x120A760C When you program has run to completion, register 0 will contain 0x00000015 (21 decimal) You will need to use the following in your solution An 32-iteration loop LSR (logical shift right) instruction The AND instruction (used to force selected bits to 0)

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!