Use a mask on your byte, examine bit 1 to see if it is set.
Using the index in a 'for' loop to see if the bit is set.
If not, shift the byte to the right, repeat.
.
Use a mask on your byte, examine bit 1 to see if it is set.
Using the index in a 'for' loop to see if the bit is set.
If not, shift the byte to the right, repeat.
.