Write an LC-3 assembly language program that counts the numberof 1s in the value stored in R0 and stores the result in addressx4000. For example, if R0 contains 0001001101110000 , thenafter the program executes, the result stored in x4000 would be 0000000000000110.
Note: Your program should use the value stored in R0.
Solution