0
4.1kviews
Perform the following operation using 2's compliment
written 5.6 years ago by | modified 4.6 years ago by |
i) $(7)_{10}- (15)_{10}$
ii) $(50)_{10}-(2A)_{16}$
Comment on results of (i) and (ii)
ADD COMMENT
EDIT
1 Answer
written 5.6 years ago by | modified 4.6 years ago by |
i) $(7)_{10}- (15)_{10}$
ii) $(50)_{10}-(2A)_{16}$
Comment on results of (i) and (ii)
written 5.6 years ago by | • modified 5.6 years ago |
1) $(7)_{10} - (15)_{10}$
$(7)_{10} = (0111)_2$
$(15)_{10} = (1111)_2$
1's Complement of $(15)_{10}$ = $(0000)_2$
2's Complement of $(15)_{10}$ = $(0000)_2 +(0001)_2 = (0001)_2 $
Now,
$(7)_{10} - (15)_{10} = (0111)_2 + (0001)_2 = (1000)_2$
Since, no carry over is generated, the result of subtraction is Negative.
The …