Determine the 2’s complement equivalent of the following numbers in 8-bit format (N.B: You must show your work for full credit)!
-12 =
-9 =
-12 is 10001100 in binary 8 bit form
First bit is used for sign since it is negative it is one.
1's complement can be found by inverting binary form
-12 1's complement is 01110011
To get 2's complement 1 should be added in least significant digit.
-12 2's complement is 01110100.
-9 is 10001001 in binary 8 bit form
First bit is used for sign since it is negative it is one.
1's complement can be found by inverting binary form
-9 1's complement is 01110110
To get 2's complement 1 should be added in least significant digit.
-12 2's complement is 01110111.
Get Answers For Free
Most questions answered within 1 hours.