Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(X86-64) Can anyone help me the question, thanks fo your help. I can get the result but i'm not sure they are correct 2. [5

(X86-64) Can anyone help me the question, thanks fo your help. I can get the result but i'm not sure they are correctimage text in transcribed

2. [5 marks] Overflow Rules (a) [2 marks] Let a and be two numbers in the range [0, 2n-1j, i.e., they each have a valid representation in n-bit unsigned binary. To subtract b from a is equivalent to adding -b to a, where -b is represented by 2n - b. Overflow occurs only when a 0. Clearly, the sum x+y cannot generate an overflow because the magnitude of the result is moving closer to 0 Writing the binary equivalent of x with an MSB of 1 and y with an MSB of 0, there are two cases to consider: t: Either (Case 1) the carry in to the MSB equals 0, or (Case 2) the carry in to the MSB equals 1. Show that the overflow rule holds in either case, i.e., that the carry in equals the carry out. (c) [2 marks Continuing with the same notation in part (b), there are 4 more cases to consider: where x and y are both negative or both positive, combined with whether or not the carry in to the MSB equals 0 or 1. Prove that the overflow rule holds in all 4 cases, i.e., that the carry in equals the carry out if and only if overflow did not occur

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

Big Data Fundamentals Concepts, Drivers & Techniques

Authors: Thomas Erl, Wajid Khattak, Paul Buhler

1st Edition

0134291204, 9780134291208

More Books

Students also viewed these Databases questions

Question

Did the team members feel that their work mattered

Answered: 1 week ago

Question

2. What process will you put in place to address conflicts?

Answered: 1 week ago