Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 4 . Determine the result of the following binary subtraction calculations ( including the result carry bit ) using the binary addition method and

14. Determine the result of the following binary subtraction calculations (including the result carry bit) using the binary addition method and the twos complement of the subtrahend (X-Y = X+[Y]*). Do not worry about overflows or the final result in decimal; well 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 1101201112.
1101--->11011101
-0111-2C->+[0111]*=+1001; 2C converts subtract to add
1|0110
Calculate -410(2)10, using binary subtraction.
-4=-0100-2C->[0100]*=1100; 2C to get -4 into S2C form
-2=-0010-2C->+[0010]*=+1110; 2C converts subtract to add
1|1010
Now you try!
a.0101210102
b.1101201102
c.-910-410
Click or tap here to enter text.
15. 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.
16. Finally, lets 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 15.
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 1100200102.
b. Assuming the input values and results are in signed (S2C) form; compare to signed overflow

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

Database Publishing With Filemaker Pro On The Web

Authors: Maria Langer

1st Edition

0201696657, 978-0201696653

More Books

Students also viewed these Databases questions

Question

Give examples of cultural icons.

Answered: 1 week ago