Hi,
Yes, it should of course be Number_2 = FullByte & %00001111, typo on my behalf, sorry about that.
If you do Number_1 = FullByte & %11110000 you'll mask off the lower four bits (make them zeros) and assign the result to Number_1. In this case, when FullByte is 178 (10110010), you'd end up with 10110000 which 176 and not 11 which is what you're looking for.
/Henrik.
Bookmarks