BiscuitDuke
Newbie level 6
- Joined
- Sep 4, 2014
- Messages
- 13
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 112
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.