





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Lecture notes on binary arithmetic, including multiplication, two's-complement, division, and binary codes (Binary Coded Decimal, BCD, and Alphanumeric codes like ASCII) from EECC341 course in Winter 2001. It covers concepts such as binary multiplication using partial products, two's-complement multiplication, binary division using shift and subtract method, and binary codes for representing decimal numbers, alphabetic characters, error detection, and correction.
What you will learn
Typology: Lecture notes
1 / 9
This page cannot be seen from the preview
Don't miss anything!
Binary Multiplication Binary Multiplication
multiplicands according to the digits of the multiplier.
11 1 0 1 1 multiplicand (4 bits)
X 13 X 1 1 0 1 multiplier (4 bits)
33 1 0 1 1
11 0 0 0 0
______ 1 0 1 1
143 1 0 1 1
1 0 0 0 1 1 1 1 Product (8 bits)
Binary Multiplication (continued)
adding, we can add each shifted multiplicand to a partial product. The previous un-signed example becomes:
Binary Division Binary Division
Example:
19 10011 quotient
11 217 1011 11011001 dividend
11 1011 shifted divisor 107 0101 reduced dividend 99 0000 shifted divisor 8 1010 reduced dividend 0000 shifted divisor 10100 reduced dividend 1011 shifted divisor 10011 reduced dividend 1011 shifted divisor 1000 remainder
BCD Addition BCD Addition
unsigned binary numbers except a correction must be made if a result exceeds 1001 by adding 6 to the digit.
0101
5
Example:
1 4
Alphanumeric Binary Codes: ASCII Alphanumeric Binary Codes: ASCII
M S B s L S B s 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1
0 0 0 0 N U L^ D L E^ S P^0 @^ P^ `^ p 0 0 0 1 S O H D C 1! 1 A Q a q 0 0 1 0 S T X^ D C^2 “^2 B^ R^ b^ r 0 0 1 1 E T X D C 3 # 3 C S c s 0 1 0 0 E O T D C 4 $ 4 D T d t 0 1 0 1 E N Q N A K % 5 E U e u 0 1 1 0 A C K S Y N & 6 F V f v 0 1 1 1 B E L E T B ‘ 7 G W g w 1 0 0 0 B S^ C A N^ (^8 H^ X^ h^ x 1 0 0 1 H T^ E M^ )^9 I^ Y^ i^ y 1 0 1 0 L F S U B * : J Z j z 1 0 1 1 V T E S C + ; K [ k { 1 1 0 0 F F F S , < L \ l | 1 1 0 1 C R G S - = M ] m } 1 1 1 0 O R S. > N ^ n ~ 1 1 1 1 S I U S /? O _ o D E L
Seven bit codes are used to represent all upper and lower case letters, numbers, punctuation and control characters