230k views
3 votes
Find the sum of 48 & -19 using 8-bit 1's complement.

User Imran Azad
by
8.1k points

1 Answer

0 votes

Final answer:

Using 8-bit 1's complement, the sum of 48 and -19 is represented as binary 00011101, which equates to +29 in decimal.

Step-by-step explanation:

To find the sum of 48 and -19 using 8-bit 1's complement, first, we need to represent both numbers in 8-bit form. Positive numbers are straightforward, so 48 is 00110000 in binary. For -19, we need to find the 1's complement. First, represent +19 as an 8-bit binary number, which is 00010011, then invert all the bits to obtain the 1's complement for -19 which is 11101100. Now we can add the two 8-bit binary numbers.

00110000
+11101100
---------
100011100

As the result is a 9-bit number, we have an overflow, which indicates we had a carry out. Because we are using 1's complement, we need to add this carry to the result. Adding the carry (the left-most '1') to the 8-bit result:

00011100
+00000001
---------
00011101

The final 8-bit binary sum is 00011101, which is +29 in decimal. So, the sum of 48 and -19 in 8-bit one's complement notation is +29.

User Alexey Kureev
by
7.6k points

Related questions