Write an ARM assembly program to count the number of 0s in 3
Write an ARM assembly program to count the number of 0\'s in 32-bit number, the number is stored at memory location labeled with \'test\' and the result will be stored at another memory location labeled with \'result\'. Use 9745 as an initial value to the number to be tested.
Solution
ARM code to count number of 0\'s in string:
You can modify the code further depending on your requirements and user input, in case if you don\'t need to count 1\'s then remove it.
