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
  • 1. a) Perform the following binary subtractions of unsigned binary numbers. Convert your answer to decimal....

    1. a) Perform the following binary subtractions of unsigned binary numbers. Convert your answer to decimal. i) 101001012 - 01001001, ii) 110110102 - 100100112 b) Repeat the calculations above but for when the binary numbers are in two's complement form. Comment on the results of the two methods used, noting and discrepancies. 2. Find the sums of the following unsigned hexadecimal numbers. Indicate whether or not the sum overflows an equivalent 8-bit binary result. a) 1116 +2216 b) 1716 +3516...

  • Convert the following two's domplement binary numbers to decimal. 100101 -5 27 -27 Question 2 (4...

    Convert the following two's domplement binary numbers to decimal. 100101 -5 27 -27 Question 2 (4 points) Convert the following two's complement binary numbers to decimal. 100011 -29 36 -3 28 Question 3 (4 points) Convert the following decimal numbers to 6-bit two's complement binary numbers and add them. Indicate whether or not the sum overflows a 6-bit result. 011001+011011 110100; no overflow 100111 100101-001100; overflovw 100110 100100 001010; overflow 100111 + 100101 -001100; no overflow Question 4 (4 points)...

  • (5 points) Convert the following decimal numbers to 8-bit two's complement binary numbers and carry out...

    (5 points) Convert the following decimal numbers to 8-bit two's complement binary numbers and carry out the additions in binary. Indicate whether the sum overflows the 8-bit result. If not show the result as a decimal number. a) 39 + (-78) b) -43 + (-92)

  • For problems 8, 9 and 10, convert the following decimal numbers into 8‑bit binary numbers as...

    For problems 8, 9 and 10, convert the following decimal numbers into 8‑bit binary numbers as required for 2's complement math, and perform the indicated operations. Circle or bold your binary answer and show your work. Notes: Remember that positive numbers are represented in sign-magnitude format in 2's complement math 8. +26 +15 =                                                          9. +26 - 15    = 10. - 26 +15 =

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

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

  • Chapter 1. problem 7: (5+5 pts)Tbe following 6-bit two's complement numbers were found in a computer....

    Chapter 1. problem 7: (5+5 pts)Tbe following 6-bit two's complement numbers were found in a computer. What decimal number do they represent'? f) 111001 Chapter 1.problem 9: (10 pts) Each of the following pairs of signed (two's complement) integers are stored in computer words (6 bits). Compute the sum as it is stored in a 6-bit computer word. Show the decimal equivalent of each operand and the sum. Indicate if there is overflow a) 110101 001111

  • (3 pts) This problem tests your knowledge about coding schemes.  What is the binary bit pattern for...

    (3 pts) This problem tests your knowledge about coding schemes.  What is the binary bit pattern for the letter 'h' using? The answers should give the whole bit string (including leading 0s). ASCII encoding (7-bits) EBCDIC encoding (8-bits) UNICODE encoding (16 bits)   ______________________________________________________________________________   (3 pts) Show how each of the following floating point values would be stored using IEEE-754 single precision (be sure to indicate the sign bit, the exponent, and the significand fields): (show your work) 12.5   −1.5   0.75 26.625...

  • 8 - For the following operations: write the operands as 2's complement binary numbers then perform...

    8 - For the following operations: write the operands as 2's complement binary numbers then perform the addition or subtraction operation shown. Show all work in binary operating on 8-bit numbers. • [1 pts) 6+3 . [1 pts) 6-3 • [1 pts) 3 - 6

  • 1. (2 pts) Perform a multiplication of two binary numbers (multiplicand 0101 and multiplier 0101) by...

    1. (2 pts) Perform a multiplication of two binary numbers (multiplicand 0101 and multiplier 0101) by creating a table to show steps taken, multiplicand register value, multiplier register value and product register value for each iteration by following the steps described in the following document. (Points will be deducted if steps are not shown.) Read this steps You can use this table to start: Multiplication table 2. (2 pts) Perform a division of two binary numbers (divide 0010 1101 by...

  • (3 pts) Consider an unsigned fixed point decimal (Base10) representation with 8 digits, 5 to the...

    (3 pts) Consider an unsigned fixed point decimal (Base10) representation with 8 digits, 5 to the left of the decimal point and 3 to the right. a.      What is the range of the expressible numbers?    b.      What is the precision?    c.       What is the error?    ______________________________________________________________________________   (3 pts) Convert this unsigned base 2 number, 1001 10112, to each base given below   (Note: the space in the binary string is purely for visual convenience) Show your work. Using...

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