Hello PIClisters. I'm trying to do a bit array in Hi-Tech C, and could not get to a way of doing so. I'm used to do the following when I want to use bits: union STATUS_Def { char bytes[2]; struct { unsigned STT_INTR:1; unsigned STT_SNSR:1; unsigned STT_SYNC:1; unsigned STT_TIMR:1; ... ... } bits } Status Then I can use Status.bytes[1]= 0x5A; Status.bits.STT_TIMR = 1; and the assembly code would really resemble "hand made". But on such way i have a name for every and each pixel, and I want to access then in an indexed bit array. Of course, I can make a macro such as: #define bitset (var,index) ( (var) |= 1 << (index) ); #define bitread (var,index) ( (var) & ~ ( 1 << (index) ); #define bitclear (var,index) ( (var) &= ~ ( 1 << (index) ); But I was willing for something like this (or a close approach, of course): stactic bit BitAry[32] ; Any ideas? Thanks Francisco -- 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