alexan_e
Administrator
- Joined
- Mar 16, 2008
- Messages
- 11,888
- Helped
- 2,021
- Reputation
- 4,158
- Reaction score
- 2,031
- Trophy points
- 1,393
- Location
- Greece
- Activity points
- 64,371
You said in a previous post that you want to check which bits become 0, you can go to the basic form of doing that
But what do you want to do with the result of each bit?
Alex
Code C - [expand] 1 2 3 4 5 6 7 8 if !CHECKBIT(PORTX,0) ...; // true if bit0 is 0 if !CHECKBIT(PORTX,1) ...; if !CHECKBIT(PORTX,2) ...; if !CHECKBIT(PORTX,3) ...; if !CHECKBIT(PORTX,4) ...; if !CHECKBIT(PORTX,5) ...; if !CHECKBIT(PORTX,6) ...; if !CHECKBIT(PORTX,7) ...;
But what do you want to do with the result of each bit?
Alex