Question: In this question, you are provided with two unsigned binary numbers, A and B. You are asked to evaluate (-A - B) as well as

In this question, you are provided with two unsigned binary numbers, A and B.

You are asked to evaluate (-A - B) as well as (-A + B) using the two's complement 12-bit number system.

If the result is encoded in less than 12 bits (including the sign bit), you need to extend it to fill the entire 12 bits. If your answer is less than 12 bits or more than 12 bits, you will get zero.

Indicate if an overflow occurred or not.

N.B.: You need to provide the entire 12-bit result, even if an overflow occurs.

You MUST report the answer in 2's complement.

Do NOT convert the number back from the 2's complement. Leave it in the 2's complement representation.

In this question, you are provided with two unsigned binary numbers, A

When A = 10100000100 and B = 110101, the value of (-A-B) = , If an overflow occurred during evaluating this expression, type yes, if not type no ; and the value of (A + B) = . If an overflow occurred during evaluating this expression, type yes, if not type no

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!