Answered step by step
Verified Expert Solution
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 correct
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 occurStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started