Question

1: Use 2s complement format to perform the following subtraction 4-5 4 (-5)--1 Answer:

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Representation of 4 and -5 in 2's complement
(4)10 = (0100)2
(-5)_{10} = (1011)_2
For subtraction just add them in 2's complement form
(0100)_2 + (1011)_2 = (1111)_2
As MSB in the 2's complement has value -2^n (n = nth bit), -8 in this case.
Converting it to decimal will yield = 1 * -2^3 + 1 * 2^2 + 1*2^1+1*2^0 = -8+4+2+1 = -1
So -1 is the answer.

Add a comment
Know the answer?
Add Answer to:
1: Use 2's complement format to perform the following subtraction 4-5 4 (-5)--1 Answer:
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT