Negative values
I just started reading the AoA and I'm already confused. The high order bit is supposed to be the most left bit.
Here's how the book explains negative values.
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:
8000h is negative because the H.O. bit is one. // H.O bit is 8, how is this one?
100h is positive because the H.O. bit is zero. // H.O bit is 1, how is this zero???
7FFFh is positive.
0FFFFh is negative.
0FFFh is positive.
Here's how the book explains negative values.
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:
8000h is negative because the H.O. bit is one. // H.O bit is 8, how is this one?
100h is positive because the H.O. bit is zero. // H.O bit is 1, how is this zero???
7FFFh is positive.
0FFFFh is negative.
0FFFh is positive.
