Analyzing Incorrect Results in Binary Subtraction

AI Thread Summary
The discussion centers on finding two 4-bit binary numbers that yield incorrect results in both unsigned and signed subtraction cases. The user has explored various combinations but has not succeeded in identifying a pair that fails for both scenarios. Key conditions for incorrect results in binary subtraction include overflow in signed cases and underflow in unsigned cases. The conversation seeks clarification on the general conditions that lead to these incorrect outcomes. Understanding these conditions is crucial for accurately analyzing binary subtraction results.
btbam91
Messages
91
Reaction score
0
I am asked to come up with two 4-bit binary numbers, that when subtracted, provide the wrong result for both the unsigned and signed cases, inspecting only the first 4 bits of the output.

I have come up with numerous combination where the unsigned is correct, the signed is wrong, and vice versa. But I can't get both of them to be wrong!

Thank you for the help!
 
Physics news on Phys.org
Can you express the conditions that the operation gets the wrong result, in general terms, for each case?
 
Back
Top