Two's Complement Adder



This applet converts between decimal and 8-bit two's complement integers. Also, it adds two 8-bit integers. Overflow and underflow are detected based on the carry-in and carry-out of the most significant bit (MSB).

The program is simple to operate. Simply enter the two binary numbers, by selecting the choice items or by entering a decimal number in the textboxes towards the end of the applets GUI. As soon as a new binary number is selected, or the 'Enter New Values' button is selected the decimal and hex equivalent numbers and the total is calculated.


Dr Jeffrey J. Gosper, Brunel University, © 1998. Original website.