From the book, Art of Assembly, I copy this quote:
In the two’s complement system, the H.O. bit of a number is a sign bit. If the H.O. bit is zero, the number is positive; if the H.O. bit is one, the number is negative. Examples:
For 16-bit numbers:
8000his negative because the H.O. bit is one.
100his positive because the H.O. bit is zero.
7FFFhis positive.
0FFFFhis negative.
0FFFhis positive.
I don't understand the last two examples. If you convert the two examples to binary, you get 0000 1111 1111 1111 1111 for the first and 0000 1111 1111 1111 for the second. Why is the former negative and the latter positive? It seems to me that the highest order bit for both would be 0 and therefor both should be positive.