Lecture 4
Lecture 4
Binary Arithmetic
Binary arithmetic is essential in all digital computers and in many other types of digital
systems. To understand digital systems, you must know the basics of binary addition,
subtraction, multiplication, and division.
Binary Addition
The four basic rules for adding binary digits (bits) are as follows:
When there is a carry of 1, you have a situation in which three bits are being added (a
bit in each of the two numbers and a carry bit). This situation is illustrated as follow,
Binary Subtraction
When subtracting numbers, you sometimes have to borrow from the next column to
the left. A borrow is required in binary only when you try to subtract a 1 from a 0. In
this case, when a 1 is borrowed from the next column to the left, a 10 is created in the
column being subtracted.
Binary Multiplication
Multiplication is performed with binary numbers in the same manner as with decimal
numbers. It involves forming partial products, shifting each successive partial product
left one place, and then adding all the partial products. Example 2–10 illustrates the
procedure; the equivalent decimal multiplications are shown for reference.
Binary Division