How would I simplify all of this into one line?
REG &= ~BITA; REG &= ~BITB; REG &= ~BITC; REG &= ~BITD; REG &= ~BITE;
You can use | (bitwise or) operator.
|
REG &= ~(BITA | BITB | BITC | BITD | BITE);