Professional Documents
Culture Documents
02 1563019 Logic
02 1563019 Logic
02 1563019 Logic
Example
7
Example:
Example:
8 Complement of a Number N :
Example
11
Example
12 For Binary
13 * Important The complement of the complement must restore the number
to its original value.
Example
Example
14 Chapter 1.6 Signed Binary Numbers
0 means +
1 means -
Remaining bits give magnitude
16
17 Example
18 Example
19 2-) Signed ONE’s Complement Representation
If sign bit = 0, then the number is positive (+) and remaining bits
give magnitude
If sign bit = 1, then the number is negative (-) and remaining bits
are ONE’s complement of the number
20 Example
If sign bit = 0, then the number is positive (+) and remaining bits
give magnitude
If sign bit = 1, then the number is negative (-) and remaining bits
are TWO’s complement of the number
22 Example