Binary Arithmetic

TypeQuiz 1 Material

Notes

Addition with unsigned or 2's complement binary numbers

Subtraction with 2's complement binary numbers

Overflow

Extra digits that does NOT fit into the available bits.

Overflow occurs if:

Overflow never occurs if we add a positive number with a negative number.

Sign Extension

Adding a number to itself

A+A=2×A=A<<1A+A=2\times A=A << 1

Questions & Answers

How do you know overflow occurred when adding unsigned numbers?

What are the TWO ways to tell if overflow occurred in 2's complement addition/subtraction?

What is the sum of 1011112101111_2 and 0010102001010_2 ?

1110012111001_2