Micro Lover
Member level 2

hi
i have two variable
unsigned char x = 170; // 10101010
unsigned char y = 255; // 11111111
now i want to copy the 3rd bit of x (Bold) to the 6th bit of y (underlined)
in keil 4.10, portable using C
how can i do it?
i have two variable
unsigned char x = 170; // 10101010
unsigned char y = 255; // 11111111
now i want to copy the 3rd bit of x (Bold) to the 6th bit of y (underlined)
in keil 4.10, portable using C
how can i do it?