442,670 views
37 votes
37 votes
Give the negative (2’s complement) of this 8-bit signed quantity: 00101110

User Peter Seliger
by
2.9k points

1 Answer

22 votes
22 votes

Answer:

-210

Step-by-step explanation:

The binary for -1 is 11111111

The positive value of 11111111 is:

2^7 + 2^6 + 2^5 + 2^4 + 2^3 + 2^2 + 2^1 + 2^0 =

128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 =

192 + 48 + 12 + 3 =

240 + 15 = 255

The positive value of 00101110 is:

0 + 0 + 2^5 + 0 + 2^3 + 2^2 + 2^1 + 0 =

2^5 + 2^3 + 2^2 + 2^1 =

32 + 8 + 4 + 2 =

40 + 6 = 46

255 - 46 = 209 ==> find the difference between the values of the binaries

11111111 and 00101110

-1 - 209 =

-(1 + 209) = -210

User Haley
by
2.8k points