I'm trying to solve a C operation in one step without using a loop.
I have:
unsigned int8 Dummy = 0x3F;//This values are for reference only, so can be different
unsigned int8 Dummy_2 = 0x02;
Dummy = Dummy ^ Dummy_2;
Now Dummy = 0x3D
I must to set the Dummy bits to 0 the bits that are 1 in Dummy_2. My code works ok the first time but if I perform the code two times it toggles back to 1. I can do this with a loop but for the clarity of the code I'm trying to do it in one line.
~Dummy_2
is.