A good answer might be:
<1100 1100 (correct)
The number to be subtracted is negated by the
usual means (reflect the bits, add one):
0101 1100 ==> 1010 0111
Then the "binary addition algorithm" is used:
00100 111
0010 0101 == 37d
1010 0111 == -89d
--------- -----
1100 1100 -52d
Since the carry into the most significant column is the same
as the carry out of that column the result is correct.
The answer came out negative, but that is fine.
|