More homework help here. I need to subtract numbers in binary using the 2's complement to represent negative numbers. It also states to use a work of 6 bits and to indicate if an overflow occurs. I'm a bit lost on this one and need some help. (-8)+(-11)
Buy a calculator? I just finished college level introduction to algebra. 8 weeks of WTF & why do I need to know this? (Still, it has been 35 years since I took a math class!) Chris C
Six-bit have a range of -32 to +31 in 2's complement.
Conversion from positive to negative integer is: 1) Invert all the bits. 2) Add 1.
so..... Convert the two numbers to negative and add them. Overflow occurs if the MSB changes sign if the two addends are both positive or both negative.