Question

(20 pts) Problem 4: Perform the following decimal arithmetic problems by first converting the numbers to twos complement form (using an 8-bit word size for all numbers). Then perform the 2s compliment addition. Show the result in binary indicating whether each result is positive or negative or overflowed. b) -48-80

0 0
Add a comment Improve this question Transcribed image text
Answer #1
Ones complement = Inverting all the bits in binary
Twos complement = Ones complement + 1

48 in binary is = 00110000
Twos complement of -48 is = 11010000

80 in binary is = 01010000
Twos complement of -80 is = 10110000

So, -48 - 80 is

11010000
10110000
-----------
10000000
-----------
As the MSB is 1. We can say that the answer is negative.
and Overflow = 1

Please upvote the solution if it helped. Thanks!

Note: Please comment below if you have any doubts

Add a comment
Know the answer?
Add Answer to:
(20 pts) Problem 4: Perform the following decimal arithmetic problems by first converting the numbers to...
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