How do I perform a division by 2 of the 24-bit two's complement value in registers r6:r5:r4. (r6 is the most significant byte.)
From what I have this is what I tried:
ASR r6;ASR r5;ASR r4;
but I am not sure whether I did it correctly.
My thought process is that by shifting every bit to the right lets say a 4 bit binary 1110, by shifting to the right from MSB will be 0111. and therefore 0111 is half of 1110. But I am not too sure I have done it correctly.