This might sound like a really newbie question, but truth is I havn't worked with this stuff in a longgg time. My question is how to find out if a bit is set in a word (16 bit or otherwise) using logic operators.

I remember a while back doing something like enumerating the bits by powers of two,

bit1 1
bit2 2
bit3 4
bit4 8

etc. and then using the NAND operator to extract it... I just don't remember how.

Thanks ~SPH