A six-bit character code is a character encoding designed for use on computers with word lengths a multiple of 6. Six bits can only encode 64 distinct characters, so these codes generally include only the upper-case letters, the numerals, some punctuation characters, and sometimes control characters. The 7-track magnetic tape format was developed to store data in such codes, along with an additional parity bit.
An early six-bit binary code was used for Braille, the reading system for the blind that was developed in the 1820s.
The earliest computers dealt with numeric data only, and made no provision for character data. Six-bit BCD, with several variants, was used by IBM on early computers such as the IBM 702 in 1953 and the IBM 704 in 1954.[1]:p.35 Six-bit encodings were replaced by the 8-bit EBCDIC code starting in 1964, when System/360 standardized on 8-bit bytes. There are some variants of this type of code (see below).
Six-bit character codes generally succeeded the five-bit Baudot code and preceded seven-bit ASCII.
Six-bit codes could encode more than 64 characters by the use of Shift Out and Shift In characters, essentially incorporating two distinct 62-character sets and switching between them. For example, the popular IBM 2741 communications terminal supported a variety of character sets of up to 88 printing characters plus control characters.
Six-bit BCD code was the adaptation of the punched card code to binary code. IBM applied the terms binary-coded decimal and BCD to the variations of BCD alphamerics used in most early IBM computers, including the IBM 1620, IBM 1400 series, and non-decimal architecture members of the IBM 700/7000 series.
A six-bit code was also used in COBOL databases, where end-of-record information was stored separately.[citation needed]
A six-bit code, with added odd parity bit, is used on Track 1 of magnetic stripe cards, as specified in ISO/IEC 7811-2.
A popular six-bit code was DEC SIXBIT. This is simply the ASCII character codes from 32 to 95 coded as 0 to 63 by subtracting 32 (i.e., columns 2, 3, 4, and 5 of the ASCII table (16 characters to a column), shifted to columns 0 through 3, by subtracting 2 from the high bits); it includes the space, punctuation characters, numbers, and capital letters, but no control characters. Since it included no control characters, not even end-of-line, it was not used for general text processing. However, six-character names such as filenames and assembler symbols could be stored in a single 36-bit word of the PDP-10, and three characters fit in each word of the PDP-1 and two characters fit in each word of the PDP-8. See table below.
Another, less common, variant is obtained by just stripping the high bit of an ASCII code in 32 - 95 range (codes 32 - 63 remain at their positions, higher values have 64 subtracted from them). Such variant was sometimes used on DEC's PDP-8 (1965).
A six-bit code similar to DEC's, but replacing a few punctuation characters with the most useful control characters—including SO/SI, allowing code extension—was specified as ECMA-1 in 1963 (see below).
FIELDATA was a seven-bit code (with optional parity) of which only 64 code positions (occupying six bits) were formally defined.[2] A variant was used by UNIVAC's 1100-series computers.[3] Treating the code as a six-bit code these systems used a 36-bit word (capable of storing six such reduced FIELDATA characters).[4]
Braille characters are represented using six dot positions, arranged in a rectangle. Each position may contain a raised dot or not, so Braille can be considered to be a six-bit binary code. Some more modern Braille systems add an extra two dots, making these systems an eight-bit code instead.
Transmission of binary data over systems which are designed for text only can sometimes introduce problems. For example, email historically supported only 7-bit ASCII codes and would strip the 8th bit, thus corrupting binary data sent directly through any troublesome mail server. Other systems can cause issues by improperly interpreting control characters during storage or transmission. A number of schemes exist to pack 8-bit data into text-only representations which can pass through text mail systems, to be decoded at the destination. Examples of 6-bit character subsets used for packing binary data include Uuencode and Base64. These sets contain no control characters (only printable numbers, letters, some punctuation, and maybe space) and allow data to be transmitted over any medium which is also able to transmit human-readable text.
IBM, which dominated commercial data processing use a variety of six-bit codes, which were tied to the character set used on punched cards, see BCD (character encoding).
Other vendor character codes are shown below, with their Unicode equivalents.
CDC 1604: Magnetic tape BCD codes | ||||||||||||||||
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F | |
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | # | @ | TAPE MARK | ||||
SP | / | S | T | U | V | W | X | Y | Z | REC MARK |
, | % | ||||
- | J | K | L | M | N | O | P | Q | R | -0 | $ | * | ||||
& | A | B | C | D | E | F | G | H | I | +0 | . | ¤ | GRP MARK |
CDC 1604: Punched card codes | ||||||||||||||||
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F | |
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | = | − | |||||
/ | S | T | U | V | W | X | Y | Z | , | ( | ||||||
— | J | K | L | M | N | O | P | Q | R | -0 | $ | * | ||||
+ | A | B | C | D | E | F | G | H | I | +0 | . | ) |
CDC 1612: Printer codes (business applications) | ||||||||||||||||
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F | |
: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | = | ≠ | ≤ | ! | [ | |
SP | / | S | T | U | V | W | X | Y | Z | ] | , | ( | → | ≡ | ~ | |
− | J | K | L | M | N | O | P | Q | R | % | $ | * | ↑ | ↓ | > | |
+ | A | B | C | D | E | F | G | H | I | < | . | ) | ≥ | ? | ; |
DEC SIXBIT | ||||||||||||||||
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F | |
SP | ! | " | # | $ | % | & | ' | ( | ) | * | + | , | - | . | / | |
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | : | ; | < | = | > | ? | |
@ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | |
P | Q | R | S | T | U | V | W | X | Y | Z | [ | \ | ] | ^ |
ECMA-1 | ||||||||||||||||
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F | |
SP | HT | LF | VT | FF | CR | SO | SI | ( | ) | * | + | , | - | . | / | |
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | : | ; | < | = | > | ? | |
NUL | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | |
P | Q | R | S | T | U | V | W | X | Y | Z | [ | \ | ] | ESC | DEL |
ICL Mainframes | ||||||||||||||||
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F | |
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | : | ; | < | = | > | ? | |
SP | ! | " | # | £ | % | & | ' | ( | ) | * | + | , | - | . | / | |
@ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | |
P | Q | R | S | T | U | V | W | X | Y | Z | [ | $ | ] | ↑ | ← |
SixBit ASCII (used by AIS)[5] | ||||||||||||||||
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F | |
@ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | |
P | Q | R | S | T | U | V | W | X | Y | Z | [ | \ | ] | ^ | ||
SP | ! | " | # | $ | % | & | ' | ( | ) | * | + | , | - | . | / | |
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | : | ; | < | = | > | ? |
GOST 6-bit code | ||||||||||||||||
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F | |
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | + | - | / | , | . | SP | |
⏨ | ↑ | ( | ) | × | = | ; | [ | ] | * | ‘ | ’ | ≠ | < | > | : | |
А | Б | В | Г | Д | Е | Ж | З | И | Й | К | Л | М | Н | О | П | |
Р | С | Т | У | Ф | Х | Ц | Ч | Ш | Щ | Ы | Ь | Э | Ю | Я | DEL |
The following table shows the arrangement of characters, with the hex value, corresponding ASCII character, Braille 6-bit codes (dot combinations), Braille Unicode glyph, and general meaning (the actual meaning may change depending on context).[6][7]
|
|
Original source: https://en.wikipedia.org/wiki/Six-bit character code.
Read more |