2. SIGNED AND UNSIGNED
NUMBERS
Unsigned Binary Numbers
Signed Binary Numbers
Most significant bit represents sign
0 represents a positive number
1 represents a negative number
3. 2’S COMPLEMENT FORM
1’s complement form
2’s complement form
Binary number 01101 (13)
1’s complement 10010
+ 1
2’s complement 10011 (-13)
26. SUM-OF-WEIGHTS
CA02
(C x 163) + (A x 162) + (0 x 161) + (2 x
160)
(12 x 163) + (10 x 162) + (0 x 161) + (2 x
160)
(12 x 4096) + (10 x 256) + (0 x 16) + (2
x 1)
49152 + 2560 + 0 + 2
51714
30. BCD ADDITION
Multi-digit BCD numbers can be added
together
23 0010 0011
45 0100 0101
68 0110 1000
23 0010 0011
48 0100 1000
71 0110 1011
1011 is illegal BCD number
31. BCD ADDITION
Add a 0110 (6) to an invalid BCD number
Carry added to the most significant BCD
digit
23 0010 0011
48 0100 1000
71 0110 1011
0110
0111 0001
32. ALPHANUMERIC CODE
Numbers, Characters, Symbols
ASCII 7-bit Code
American Standard Code for Information
Interchange
10 Numbers (0-9)
26 Lower Case Characters (a-z)
26 Upper Case Characters (A-Z)
Punctuation and Symbols
32 Control Characters
33. ASCII CODE
Numbers 0 to 9
ASCII 0110000 (30h) to 0111001 (39h)
Alphabets a to z
ASCII 1100001 (61h) to 1111010 (7Ah)
Alphabets A to Z
ASCII 1000001 (41h) to 1011010 (5Ah)
Control Characters
ASCII 0000000 (0h) to 0011111 (1Fh)
35. ODD PARITY ERROR
DETECTION
Original data 10011010
With Odd Parity 110011010
1-bit error 110111010
Number of 1s even indicates 1-bit error
2-bit error 110110010
Number of 1s odd no error indicated
3-bit error 100110010
Number of 1s even indicates error