Subtracting binary numbers

  • Thread starter btbam91
  • Start date
  • #1
91
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!
 

Answers and Replies

  • #2
Simon Bridge
Science Advisor
Homework Helper
17,857
1,655
Can you express the conditions that the operation gets the wrong result, in general terms, for each case?
 

Related Threads on Subtracting binary numbers

Replies
4
Views
419
Replies
3
Views
364
  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
6
Views
949
Replies
4
Views
13K
Replies
1
Views
6K
Replies
2
Views
901
  • Last Post
Replies
5
Views
4K
  • Last Post
Replies
20
Views
1K
  • Last Post
Replies
4
Views
17K
Top