|
Encoding text data - bcd |
Character storageWith the advent of text processing a method was needed to store
Hence, two further bits were added to the front of the numeric bits (called
"zone" bits) to enable the representation of these characters. |
|
Binary Coded Decimal (BCD) |
BCD - using two 'zone' bits, a 6 bit code was used by many early machines (and some 3rd Generation computers (eg. ICL 1900)).
B |
A |
8 |
4 |
2 |
1 |
||
0 |
0 |
0 |
0 |
1 |
1 |
--> 3 | |
0 |
0 |
1 |
0 |
0 |
1 |
--> 9 | |
| Zone | numeric | ||||||
Note that only 64 characters may be represented. (2^6), and that lowercase letters were not represented. Many printers were constructed to output only standard BCD characters, and many texts on COBOL programming still use uppercase only in their code. (COBOL 85 now allows for mixed case programming).
[Rev 9/9/98] 27/4/97 © 1997-98 V/2-Com (Verhaart), P O Box 8415, Havelock North, New Zealand.