








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









00 10 carry 0 011 3
0 010 2 0 101 = 5
01 00 carry
0 100 4 0 101 5 1 001 = -7 (WRONG!)
Multiply the numbers as usual for decimal, then add them. Because binary only uses 1s and 0s, a shortcut is to simply repeat the multiplicand for each 1 in the multiplier, shifted left.
Multiplicand Multiplier
Product
Multiplying integers M * N of lengths m and n respectively, need the following values:
A = M followed by n+1 0's.
B = M' followed by n+1 0's.
P = m 0's followed by N and a 0.
Start with P and examine 2 rightmost bits.
10 → P = P+B, shift right
01 → P = P+A, shift right
00 or 11 → shift right
Do this n times, then drop the right most bit. P is now the product in two's complement.
A = 1011 0000 0 B = 0101 0000 0 P = 0000 0111 0
shift 0 1 0 1 0 1 1 1 0
Product = 1 1 0 1 1 1 0 1