BiscuitDuke
Newbie level 6
Hello everyone. I need help on a homework assignment:
Write a C program that treats A1A0, A3A2, and A5A4 as three 2-bit unsigned binary
number. The program should output the sum of those three numbers onto B.
I need help with the 'treat A1A0... 2-bit unsigned binary number.' I figure I'd have to use the GetBit function but i dont know how to get two bits and make them a one two-bit number.
Thank you in advance.
Write a C program that treats A1A0, A3A2, and A5A4 as three 2-bit unsigned binary
number. The program should output the sum of those three numbers onto B.
I need help with the 'treat A1A0... 2-bit unsigned binary number.' I figure I'd have to use the GetBit function but i dont know how to get two bits and make them a one two-bit number.
Thank you in advance.