Ive been working on a new program and I want to know if the SDCC is able to manipulate single bits "easily".
ex.: (PIC 16 F 877 A)
I want to take the first, second and third bits of a variable and "throw" in another place
RB1 = VAR_bits.0
RB2 = VAR_bits.1
RB3 = VAR_bits.2
Ive managed to do that using mask... but I still want to know if there is any way to "use" somekind o "_bits.n" to reach the desider bit.
Log in to post a comment.