At 11:28 12/04/2001 +0000, Mike Harrison wrote: > >myData.Bits.Bit0 = 1; > >Could you then simplify the access to the bits by doing >#define modeflag myData.Bits.Bit0 >modeflag=0; yes, this is standard preprocessor stuff (replacement at the text level, without any syntax checking etc.) >Could you also simplify the above declaration by using >bit Bit0; >instead of int Bit0:1; Not in ANSI C. Most microcontroller implementations of (ANSI) C have some extensions to accomodate bit types, but these are compiler specific. So in order to get a useful answer, you'd have to tell us which compiler you're talking about. ge -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics