Asix-bit character code is acharacter encoding designed for use on computers withword 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. The7-trackmagnetic tape format was developed to store data in such codes, along with an additionalparity bit.
An early six-bit binary code was used forBraille, 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 byIBM on early computers such as theIBM 702 in 1953 and theIBM 704 in 1954.[1]: p.35 Six-bit encodings were replaced by the 8-bitEBCDIC code starting in 1964, whenSystem/360 standardized on 8-bitbytes. There are some variants of this type of code (seebelow).
Six-bit character codes generally succeeded the five-bitBaudot code and preceded seven-bitASCII.
Six-bit codes could encode more than 64 characters by the use ofShift Out and Shift In characters, essentially incorporating two distinct 62-character sets and switching between them. For example, the popularIBM 2741 communications terminal supported a variety of character sets of up to 88 printing characters plus control characters.
A special 6-level extension of the 5-levelInternational Telegraph Alphabet was used to remotely controlLinotype machines beginning around 1930. By 1950 it was widely used bywire services to send preformatted news stories to participating newspapers. It supported the 90printable characters characters of a Linotype machine, pluswhitespace characters.
The TTS code had two pairs of shift codes allowing a total of four shift states. The first operated much like a keyboard's shift key and selected between a lower-case and digits repertoire, and an upper-case and symbols one. A second pair of Linotype-specific "lower rail" and "upper rail" shift codes would select an alternate (usually italic) font.
Six-bitBCD codes were adaptations of thepunched card code tobinary code.IBM applied the termsbinary-coded decimal andBCD to the variations of BCDalphamerics used in most early IBM computers, including theIBM 1620,IBM 1400 series, and non-decimal architecture members of theIBM 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 oddparity bit, is used on Track 1 ofmagnetic stripe cards, as specified inISO/IEC 7811-2.
A popular six-bit code wasDEC 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 asfilenames andassemblersymbols could be stored in a single36-bit word of thePDP-10, and three characters fit in each word of thePDP-1 and two characters fit in each word of thePDP-8.
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'sPDP-8 (1965).
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F | |
| 0x | SP | ! | " | # | $ | % | & | ' | ( | ) | * | + | , | - | . | / |
| 1x | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | : | ; | < | = | > | ? |
| 2x | @ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O |
| 3x | P | Q | R | S | T | U | V | W | X | Y | Z | [ | \ | ] | ^ | _ |
A six-bit code similar to DEC's, but replacing a few punctuation characters with the most useful control characters—includingSO/SI, allowing code extension—was specified asECMA-1 in 1963. Four years later, ISO Recommendation R 646-1967 (which later evolved into ISO Standard 646) included an almost identical six-bit code, differing only in some of the alternative options permitted for a few characters. ECMA-1 was eventually withdrawn, and ISO 646-1973 explicitly removed the six-bit code, standardizing only its 7-bit code.
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F | |
| 0x | SP | HT | LF [a] | VT | FF | CR [a] | SO | SI | ( | ) | * | + | , | - | . | / |
| 1x | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | : | ; | </$ | =/% | >/& | ?/'[b] |
| 2x | NUL | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O |
| 3x | P | Q | R | S | T | U | V | W | X | Y | Z | [[c] | \[c] | ][c] | ESC | DEL |
TheICT (later ICL) 1900-series of mainframes used a six-bit code derived from an early 1963 version ofASCII for internal storage and processing, referred to as the "ECMA character set" in its documentation.
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F | |
| 0x | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | : | ; | < | = | > | ? |
| 1x | SP | ! | " | # | £ | % | & | ' | ( | ) | * | + | , | - | . | / |
| 2x | @ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O |
| 3x | P | Q | R | S | T | U | V | W | X | Y | Z | [ | $ | ] | ↑ | ← |
Theautomatic identification system (AIS) uses this code.[2]
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F | |
| 0x | @ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O |
| 1x | P | Q | R | S | T | U | V | W | X | Y | Z | [ | \ | ] | ^ | _ |
| 2x | SP | ! | " | # | $ | % | & | ' | ( | ) | * | + | , | - | . | / |
| 3x | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | : | ; | < | = | > | ? |
FIELDATA was a seven-bit code (with optional parity) of which only 64 code positions (occupying six bits) were formally defined.[3] A variant was used byUNIVAC's 1100-series computers.[4] Treating the code as a six-bit code these systems used a 36-bit word (capable of storing six such reduced FIELDATA characters).[5]
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 includeUuencode andBase64. 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 onpunched cards,seeBCD (character encoding).
Other vendor character codes are shown below, with theirUnicode equivalents.
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F | |
| 0x | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | # | @ | TAPE MARK | |||
| 1x | SP | / | S | T | U | V | W | X | Y | Z | REC MARK | , | % | |||
| 2x | - | J | K | L | M | N | O | P | Q | R | -0 | $ | * | |||
| 3x | & | A | B | C | D | E | F | G | H | I | +0 | . | ¤ | GRP MARK |
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F | |
| 0x | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | = | − | ||||
| 1x | SP | / | S | T | U | V | W | X | Y | Z | , | ( | ||||
| 2x | — | J | K | L | M | N | O | P | Q | R | -0 | $ | * | |||
| 3x | + | A | B | C | D | E | F | G | H | I | +0 | . | ) |
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F | |
| 0x | : | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | = | ≠ | ≤ | ! | [ |
| 1x | SP | / | S | T | U | V | W | X | Y | Z | ] | , | ( | → | ≡ | ~ |
| 2x | − | J | K | L | M | N | O | P | Q | R | % | $ | * | ↑ | ↓ | > |
| 3x | + | A | B | C | D | E | F | G | H | I | < | . | ) | ≥ | ? | ; |
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F | |
| 0x | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | + | - | / | , | . | SP |
| 1x | ⏨ | ↑ | ( | ) | × | = | ; | [ | ] | * | ‘ | ’ | ≠ | < | > | : |
| 2x | А | Б | В | Г | Д | Е | Ж | З | И | Й | К | Л | М | Н | О | П |
| 3x | Р | С | Т | У | Ф | Х | Ц | Ч | Ш | Щ | Ы | Ь | Э | Ю | Я | DEL |
The following table shows the arrangement of characters, with the hex value, corresponding ASCII character, Braille 6-bit codes (dot combinations), BrailleUnicode glyph, and general meaning (the actual meaning may change depending on context).[6][7]
|
|