Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
The Real MicroMan said:divide by 4 or shift right twice...same thing
kinjalgp said:Yes, you have to shift right the entire 10 bits. But this way you'll loose lower 2 bits.
For e.g
Code:Before Shifting: 00000010 11010110 After Shifting: 00000000 10110101
BCF STATUS, C ;Clear carry, it will be shifted into MSB of adressh
RRF ADRESH, F ;rotate adresH Right trough carry, carry holds previous LSB of adressH
RRF ADRESL, F ;rotate adresL right trough carry, LSB will be in carry