From: "Byron A Jeff wrote: >> Hm.. why not >> >> i &= 0b11011111; > >> >> Also, there are C macros for things like rlcf. > > 0b isn't C standard syntax is it? > > Yet another extension that isn't a part of the standard language. > > The point is that even if you know base C, you'll have to learn a new > set of quirks to program in it. IMO, to a C programmer, that would still be easier than learning assembly. And you could also say: i &= 0xBF // 0xBF = 0b1011 1111 instead of the convoluted (and slower) i &= ~(1<<6) The only reason I made the first post, is because the comparison was made unfairly. Best regards, Vitaliy -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist