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
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
Get step-by-step solutions from verified subject matter experts
