You are on page 1of 8

Arithmetic for Computers

Chapter- 4
4.2 Signed and Unsigned Numbers
4.2 Signed and Unsigned Numbers
4.2 Signed and Unsigned Numbers
4.2 Signed and Unsigned Numbers
4.2 Signed and Unsigned Numbers
4.2 Signed and Unsigned Numbers
4.3 Addition and Subtraction
Overflow Conditions
Operation Operand A Operand B Result

A+B ≥0 ≥0 <0
011 (3) + 011 (3) = 110 (-2)
A+B <0 <0 ≥0
100 (-4) + 101 (-3) = 1 001 (1)
A–B ≥0 <0 <0
011 (3) – 100 (-4) = 011 + 100 = 111 (-1)
A–B <0 ≥0 ≥0
100 (-4) – 001 (1) = 100 + 111 = 1 011 (3)

You might also like