[Tutor] stumped again adding bytes

Alan Gauld alan.gauld at btinternet.com
Sat Feb 24 02:56:25 CET 2007

"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.

More information about the Tutor mailing list