I m not sure if this suitable place for my question but am really in need for your help in this problem
Write an 8085 Assembler program that does the following:
Given a 16 bits number stored in the register pair DE determine if it is a power of 4. If so, store the value of 1 in the register C otherwise store the value of 2 in the same register. Try the program with the following values: 7,4,98,0,1,64,4096,8192,10500,2.
They gave us small hint :
use the instructions (either rar or ral). Don't compare with all possible powers of 4. rar mean rotate right with carry and ral is for left rotation. They are explained in the documents I gave you (either the text document or the word document). The accumulator is only 8 bits and not 16 bits.
Please at least explain the solution for me and I will try to solve