I'm having some problems testing bit 0 of a variable to see if it's a 1. Here's the snippet of the code:
if ((bWork && 0x01)==1) bTemp = bTemp|0x01; else bTemp = bTemp & 0xFE;
"You learn something new everyday." Looking at your original post, you probably also want to check out the |= and &= operators in your 'C' text book (and += etc).