hello, im trying to capture one bit form int var, and then after its gone trough some operators to write that bit on the same place.
so for capturin i wrote: (lets say i need first bit captured and that int var is a with lenght of 2bytes)
g=0x8000 & a;
as far i can see that bit will be written in g var (int) and all others will be 0. Now i cant figure out how to put that same bit i got in a var later.
no need saying im beginner..
so for capturin i wrote: (lets say i need first bit captured and that int var is a with lenght of 2bytes)
g=0x8000 & a;
as far i can see that bit will be written in g var (int) and all others will be 0. Now i cant figure out how to put that same bit i got in a var later.
no need saying im beginner..