I think he is talking about: reg |= 1<<7 does the same as bsf reg,7 The cool thing is that you can do the C thing in a macro, and if the PIC compiler is good enough, it will optimize this out for you to BSF. SourceBoost (was C2C) does this optimization and ships with macros for setting bits, making it very ANSI and PIC friendly. The code is very portable. - Ben On 8/17/05, Olin Lathrop wrote: > Rich Painter wrote: > > My first PIC project has been underway for many months. I selected the > > Microchip dsPIC 6012. > > > > ... > > > > I also don't like their departure from using standard "composite ORed > > single-bit masks". > > I don't know what you're talking about. I don't do much C, and I wasn't > aware that there was a standard that envolved "composite ORed single-bit > masks", nor is it clear what that's supposed to mean. [snip] -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist