Folks - My brain is at half mast lately.
I am adding bits 0 to 7 together and I need to know if the result is odd or even - see below.
I need to know if result (b6) is odd or even.
I have tried a few options but obviously not the correct one.
Any guidance is appreciated.
I am adding bits 0 to 7 together and I need to know if the result is odd or even - see below.
Code:
b6 = bit0 + bit1 + bit2 + bit3 + bit4 + bit5 + bit6 + bit7
I have tried a few options but obviously not the correct one.
Any guidance is appreciated.