"shawn bright" <nephish at gmail.com> wrote > if i use i bitmask of 240 it will mask the most significant 4 bits When using bitmasks its much easier to think in hex (or octal). there are exactly 2 hex digits per byte so you only need to think about each group of 4 bits and its hex bit pattern. It saves a heap of mental calculations! Alan G.