On Wed, Mar 11, 2015 at 11:21 PM, Lyle Hazelwood wrote= : > If you want to set both bits, only the OR operand is needed. > > If you want to clear the bits, only the AND operator is needed. > > If the target bits may be going either way, then you're right on track > with your examples. Hi Lyle, I wasn't very clear in my original question. I'm assuming an unknown initial state of "target" and an unknown modification. I'll be looking values up in a table to modify the target. Hopefully. Josh --=20 A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools. -Douglas Adams --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .