maam,101010 in 1's complement = -21

101010=010101=-21(MSB=1).i ignore that step to write 1's complement .i write directly in decimal number.

101010=010101=-21(MSB=1).i ignore that step to write 1's complement .i write directly in decimal number.

2 votes

$(a) A = 101010$ and $B = 011101$ are $1’s$ complement numbers. Perform the following operations and indicate whether overflow occurs.

$(i) A + B$

$(ii) A − B$

$(b)$ Repeat part $(a)$ assuming the numbers are $2’s$ complement numbers.

$(i) A + B$

$(ii) A − B$

$(b)$ Repeat part $(a)$ assuming the numbers are $2’s$ complement numbers.

0 votes

for 1's complement

a)A=101010=-21 and B=+34 maximum range of number in 1's complement number for 6 bit is -31 to +31 so A+B can't overflow.

b) A-B =-55 which is out of range so overflow occur.

for 2's complement range =-32 to +31

a)A=101010=-22 and B=+35

A+B overflow can't occur.

b)A-B =-57 overflow occur

a)A=101010=-21 and B=+34 maximum range of number in 1's complement number for 6 bit is -31 to +31 so A+B can't overflow.

b) A-B =-55 which is out of range so overflow occur.

for 2's complement range =-32 to +31

a)A=101010=-22 and B=+35

A+B overflow can't occur.

b)A-B =-57 overflow occur

0

maam,101010 in 1's complement = -21

101010=010101=-21(MSB=1).i ignore that step to write 1's complement .i write directly in decimal number.

101010=010101=-21(MSB=1).i ignore that step to write 1's complement .i write directly in decimal number.