Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Determine the result of the following binary subtraction calculations ( including the result carry bit ) using the binary addition method and the two's complement

Determine the result of the following binary subtraction calculations (including the result carry
bit) using the binary addition method and the two's complement of the subtrahend
{:x+[Y]**). Do not worry about overflows or the final result in decimal; we'll look at those in the final
problems of this homework. Subtraction is performed the same way regardless if the values are
in S2C form or not; that only impacts decisions of overflow.
Here are some examples:
Calculate 11012-01112.
1101-,1101,1101
-0111-2C+-[0111]**=+100110110;2C converts subtract to add
Calculate -410-(2)10, using binary subtraction.
-4=-0100-2C=[0100]**=1100;2Cto get -4 into S2C form
-2?=-0010-2C+[??0010]**=+1110;110102C converts subtract to add
Now you try!
a.01012-10102
b.11012-01102
c.-910-410
Click or tap here to enter text.
For the two examples in Problem 14(the examples, not the problems in a), b), c)), determine:
a. if unsigned overflow occurred. Hint: just like addition, unsigned overflow is identified by
the result carry, but opposite of addition, in subtraction carry =0 indicates overflow
b. if signed overflow occurred. Hint: the rules for signed overflow are different for
subtraction than addition, but they are also intuitive
Click or tap here to enter text.
Finally, let's explore if the results and overflow indicators calculated in Problems 14 and 15
make sense. For the two cases in a) and b) below, use the tables of binary values in the
textbook or course notes to determine the decimal values of the inputs and the result (ignoring
carry). Then comment on how these compare to the overflow results you identified in Problem
a. Assuming the input values and results are in unsigned form; compare to unsigned
overflow. Hint: for the second example, assume the binary input is 11002-00102.
b. Assuming the input values and results are in signed (S2C) form; compare to signed
overflow
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Sybase Database Administrators Handbook

Authors: Brian Hitchcock

1st Edition

0133574776, 978-0133574777

More Books

Students also viewed these Databases questions

Question

3. How has e-commerce transformed marketing?

Answered: 1 week ago