jamos wrote

Hi everyone

Im going through the book as a self study and Im just wondering why the value of 89ab hex is -30293 decimal on the h pin when I load up the Mux8Way16.hdl and Mux8Way16.tst, I am clearly misunderstanding some fundamental mathematics here and was hoping someone could help before I move on....

many thanks

J

Negative numbers are stored in binary in

*two's compliment* format. This will be explained in detail in TECS chapter 2. Briefly, the most significant bit of the number is used as a

*sign bit* to indicate negative numbers. Any hexadecimal number beginning with 8-F is a negative number.

--Mark