Digital Fundamentals: Floyd
Digital Fundamentals: Floyd
Fundamentals
Floyd
Chapter 2
Floyd, Digital Fundamentals, 10th ed © 2009 Pearson Education, Upper Saddle River, NJ 07458. l Rights Reserved
Al
Summary
Decimal Numbers
0 1 1 3 6
12 24 49 2 base
The algorithm for binary division is somewhat similar to decimal division, the only
difference here lies in the rules followed using the digits '0' and '1'.
Binary multiplication and binary subtraction are the two binary arithmetic
operations that are performed while performing binary division.
The use of only '0' and '1' makes binary division quite simpler in comparison to
decimal division.
Other operations that are used while performing binary division are binary
multiplication and binary subtraction.
Summary
Binary Division
Summary
Binary Division
Example 1: Evaluate 1001011 ÷ 11 using the long-division method.
Summary
1’s Complement
0 0 1 1 0 1 0 1
Summary
2’s Complement
0 0 1 1 0 1 0 1
Input bits
Carry
Adder
in (add
Output bits (sum) 1)
00 1 1 0 1
1 0
Summary
Signed Binary Numbers
There are several ways to represent signed binary numbers.
In all cases, the MSB in a signed number is the sign bit,
that tells you if the number is positive or negative.
Computers use a modified 2’s complement for
signed numbers. Positive numbers are stored in true form
(with a 0 for the sign bit) and negative numbers are
stored in complement form (with a 1 for the sign bit).
For example, the positive number 58 is written
using 8-bits as 00111010 (true form).
Binary sequence
Gray code sequence
Summary
ASCII
1. c 6. a
2. b 7. d
3. c 8. d
4. b 9. b
5. a 10.
c