This is a homework assignment problem and I tried to solve this all last night but I am still a newbie in Assembly language.
Dont give me the full solution, just give me a hint.
Design an ARM Assembly Language program that will examine a 32-bit value stored in R1 and count the number of contiguous sequences of 1s. For example, the value:
01110001000111101100011100011111contains six sequences of 1s.Write the final value in register, R2.
Now, the algorithm I think is to read each character one by one, and increase i by 1 everytime it faces 2 continuous 1s. But how to do it in Assembly Language?
 
     
     
     
     
    