Question

(20 pts) Perform the following operation: • (4−12)10, Using signed binary, 8–bit 2’s complement arithmetic.

  1. (20 pts) Perform the following operation:

    • (4−12)10,
    Using signed binary, 8–bit 2’s complement arithmetic.

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

(4-12)10 using 8bit 2's complement

4 in 8 bit binary
0000 0100

12 in 8 bit binary 0000 1100
1's complement of 12 => 1111 0011
2's complement of 12=> 11110011
+ 1
=11110100

-12 in binary is 11110100

4+(-12) =>

0000 0100
+1111 0100
= 1111 1000
as there is no carry we will take two's complement of this and the output will be negative

one's complement of 1111 1000 is 0000 0111
2's complement = 0000 0111
+ 1
=0000 1000
so the if we convert this into decimal it will be -8 which is the exact result of 4-12.

if you like the answer please provide a thumbs up.

Add a comment
Know the answer?
Add Answer to:
(20 pts) Perform the following operation: • (4−12)10, Using signed binary, 8–bit 2’s complement arithmetic.
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