I am struggling with performing binary math with unsigned numbers. I know I am supposed to take the 2s complement (flip the bits and add 1) of the subtrahend before I subtract, but for some reason my teacher marked me wrong on every single question I did.
Here is the question:
Perform the following operations on the given numbers using the 2's complement of the subtrahend (bottom number).
The following numbers are UNSIGNED binary representations of the given decimal number. Write the 2's complement of each number in the space provided.
Like take A for example: If 0111 1010 is unsigned, then I make it a signed number by appending a sign bit in front of it. Right? Here is what I did for the first one:
122 = 1000 0101
+ 1
________
1000 0110
-122 = 0000 0110 (by replacing the 1 with a zero on the rightmost bit)
What am I doing wrong?
