bit storing as byte

AMPS - as usual with your queries I have no idea what you are talking about.

Can you please explain in English, not with a program, what your current problem is ?