Professional Documents
Culture Documents
Lec 7-1
Decimal-to-Binary Conversion
• Quotient Remainder
11/2 = 5 1
5/2 = 2 1
2/2 = 1 0
1/2 = 0 1
Thus, 11 (Base 10) = 1011 (Base 2)
Lec 7-2
Sign-Magnitude Notation
• 00010010 = +18
• 10010010 = -18
Lec 7-3
Drawbacks of Sign-Magnitude
Notation
18 = 00010010
1's complement= 11101101
+1
________
TC of 18 = 11101110 = -18D
Lec 7-7
Binary Addition and Subtration
Lec 7-8
Ones Complement Addition
ex. 1. ex. 2.
+1 0001 +3 0011
-6 1001 -3 1100
-------- --------
-5 1010 -0 1111
Lec 7-9
Ones Complement End Around
Carry
-2 1101
-4 1011
--------
1)1000
--> 1
--------
1001 = -6
Lec 7-10
Twos Complement Addition
Lec 7-12
Subtraction