> Van: Dave Johnson > Aan: PICLIST@MITVMA.MIT.EDU Hello Dave, > Onderwerp: Re: bit wise logic functions > Datum: woensdag 10 februari 1999 15:26 > > >> if (T0IE && T0IF) - this compiles fine > >This is a Bit-wise AND. > >> if (T0IE & T0IF) -this doesn't but it should being > >This is a Logical AND. > Whoah, I think you got those backwards. The first is a logical AND, the > second is a bitwise AND. (I'd be awfully surprised if this particular C > compiler decided to reverse the meaning of those two operators.) You are quite right. And I _did_ look it up in the book first :-( What I tried to tell (but was non too clear about) was that T0IE is not a Bit, bit a _index_ to a bit. The compiler tries to do a _Compile-time_ and. So it can never work with the bits they (T0IE, T0IF) are _referring_ too ... Greetz, Rudy Wieser