I have a 16 bit address 0-15, I need to check at value of bit corresponding to their position in C
for example at 15 place i have 1, 14 has 0, and soo on!
|1|0|0|0|1|0|1|0|1|1|1|1|1|0|1|0|
I was thinking to create 16 new addresses with all zero and the position i am looking
Use a macro similar to this:
CHECK_BIT(x, i)
will returntrue
if the i'th bit ofx
is one, false otherwise.