Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Six-bit character code

From Wikipedia, the free encyclopedia
Computer encoding of characters

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.

Types of six-bit codes

[edit]

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.

Teletypesetter code

[edit]
Main articles:Teleprinter § Teletypesetter, andTelegraph code § TeleTypeSetter

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.

BCD six-bit codes

[edit]

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.

COBOL databases six-bit code

[edit]

A six-bit code was also used in COBOL databases, where end-of-record information was stored separately.[citation needed]

Magnetic stripe card six-bit code

[edit]

A six-bit code, with added oddparity bit, is used on Track 1 ofmagnetic stripe cards, as specified inISO/IEC 7811-2.

DEC SIXBIT code

[edit]

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).

DEC SIXBIT
0123456789ABCDEF
0x SP !"#$%&'()*+,-./
1x0123456789:;<=>?
2x@ABCDEFGHIJKLMNO
3xPQRSTUVWXYZ[\]^_

ECMA and ISO six-bit code

[edit]

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.

ECMA-1 and ISO/R 646:1967
0123456789ABCDEF
0x SP   HT   LF [a]  VT   FF   CR [a]  SO   SI  ()*+,-./
1x0123456789:;</$=/%>/&?/'[b]
2xNULABCDEFGHIJKLMNO
3xPQRSTUVWXYZ[[c]\[c]][c]ESCDEL
  1. ^abIn systems where LF both advances to the next line and returns the carriage to the start position, CR may instead be used as a "spare control" according to ECMA-1, and as BS "backspace" according to ISO/R 646. LF then has the designation NL "new line".
  2. ^ECMA-1 permits either the question mark or the apostrophe in this position. ISO/R 646 permits the apostrophe only, making it an invariant.
  3. ^abcThese character positions are intended for national use. Where the local alphabet contains letters additional to the basic latin alphabet, they should be assigned to these positions. The default assignments, according to ECMA-1, are listed here.

ICT/ICL 6-bit character set

[edit]

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.

ICL Mainframes
0123456789ABCDEF
0x0123456789:;<=>?
1x SP !"#£%&'()*+,-./
2x@ABCDEFGHIJKLMNO
3xPQRSTUVWXYZ[$]

AIS SixBit ASCII

[edit]

Theautomatic identification system (AIS) uses this code.[2]

AIS SixBit ASCII
0123456789ABCDEF
0x@ABCDEFGHIJKLMNO
1xPQRSTUVWXYZ[\]^_
2x SP !"#$%&'()*+,-./
3x0123456789:;<=>?

FIELDATA six-bit code

[edit]

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 six-bit code

[edit]

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.

Six-bit codes for binary-to-text encoding

[edit]
See also:Binary-to-text encoding

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.

Examples of BCD six-bit codes

[edit]

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.

CDC 1604: Magnetic tape BCD codes
0123456789ABCDEF
0x1234567890#@TAPE
MARK
1x SP /STUVWXYZREC
MARK
,%
2x-JKLMNOPQR-0$*
3x&ABCDEFGHI+0.¤GRP
MARK
CDC 1604:Punched card codes
0123456789ABCDEF
0x1234567890=
1x SP /STUVWXYZ,(
2xJKLMNOPQR-0$*
3x+ABCDEFGHI+0.)
CDC 1612: Printer codes (business applications)
0123456789ABCDEF
0x:1234567890=![
1x SP /STUVWXYZ],(~
2xJKLMNOPQR%$*>
3x+ABCDEFGHI<.)?;

GOST 6-bit code

[edit]
See also:GOST 10859 § 6-bit code: with only Cyrillic upper case letters
GOST 6-bit code
0123456789ABCDEF
0x0123456789+-/,. SP 
1x()×=;[]*<>:
2xАБВГДЕЖЗИЙКЛМНОП
3xРСТУФХЦЧШЩЫЬЭЮЯDEL

Example of six-bit Braille codes

[edit]

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]

HexASCII GlyphBraille DotsBraille GlyphBraille Meaning
20(space)⠀ (braille pattern blank)(space)
21!2-3-4-6⠮ (braille pattern dots-2346)the
22"5⠐ (braille pattern dots-5)(contraction)
23#3-4-5-6⠼ (braille pattern dots-3456)(number prefix)
24$1-2-4-6⠫ (braille pattern dots-1246)ed
25%1-4-6⠩ (braille pattern dots-146)sh
26&1-2-3-4-6⠯ (braille pattern dots-12346)and
27'3⠄ (braille pattern dots-3)'
28(1-2-3-5-6⠷ (braille pattern dots-12356)of
29)2-3-4-5-6⠾ (braille pattern dots-23456)with
2A*1-6⠡ (braille pattern dots-16)ch
2B+3-4-6⠬ (braille pattern dots-346)ing
2C,6⠠ (braille pattern dots-6)(uppercase prefix)
2D-3-6⠤ (braille pattern dots-36)-
2E.4-6⠨ (braille pattern dots-46)(italic prefix)
2F/3-4⠌ (braille pattern dots-34)st
3003-5-6⠴ (braille pattern dots-356)"
3112⠂ (braille pattern dots-2),
3222-3⠆ (braille pattern dots-23);
3332-5⠒ (braille pattern dots-25):
3442-5-6⠲ (braille pattern dots-256).
3552-6⠢ (braille pattern dots-26)en
3662-3-5⠖ (braille pattern dots-235)!
3772-3-5-6⠶ (braille pattern dots-2356)( or )
3882-3-6⠦ (braille pattern dots-236)" or ?
3993-5⠔ (braille pattern dots-35)in
3A:1-5-6⠱ (braille pattern dots-156)wh
3B;5-6⠰ (braille pattern dots-56)(letter prefix)
3C<1-2-6⠣ (braille pattern dots-126)gh
3D=1-2-3-4-5-6⠿ (braille pattern dots-123456)for
3E>3-4-5⠜ (braille pattern dots-345)ar
3F?1-4-5-6⠹ (braille pattern dots-1456)th
 
HexASCII GlyphBraille DotsBraille GlyphBraille Meaning
40@4⠈ (braille pattern dots-4)(accent prefix)
41A1⠁ (braille pattern dots-1)a
42B1-2⠃ (braille pattern dots-12)b
43C1-4⠉ (braille pattern dots-14)c
44D1-4-5⠙ (braille pattern dots-145)d
45E1-5⠑ (braille pattern dots-15)e
46F1-2-4⠋ (braille pattern dots-124)f
47G1-2-4-5⠛ (braille pattern dots-1245)g
48H1-2-5⠓ (braille pattern dots-125)h
49I2-4⠊ (braille pattern dots-24)i
4AJ2-4-5⠚ (braille pattern dots-245)j
4BK1-3⠅ (braille pattern dots-13)k
4CL1-2-3⠇ (braille pattern dots-123)l
4DM1-3-4⠍ (braille pattern dots-134)m
4EN1-3-4-5⠝ (braille pattern dots-1345)n
4FO1-3-5⠕ (braille pattern dots-135)o
50P1-2-3-4⠏ (braille pattern dots-1234)p
51Q1-2-3-4-5⠟ (braille pattern dots-12345)q
52R1-2-3-5⠗ (braille pattern dots-1235)r
53S2-3-4⠎ (braille pattern dots-234)s
54T2-3-4-5⠞ (braille pattern dots-2345)t
55U1-3-6⠥ (braille pattern dots-136)u
56V1-2-3-6⠧ (braille pattern dots-1236)v
57W2-4-5-6⠺ (braille pattern dots-2456)w
58X1-3-4-6⠭ (braille pattern dots-1346)x
59Y1-3-4-5-6⠽ (braille pattern dots-13456)y
5AZ1-3-5-6⠵ (braille pattern dots-1356)z
5B[2-4-6⠪ (braille pattern dots-246)ow
5C\1-2-5-6⠳ (braille pattern dots-1256)ou
5D]1-2-4-5-6⠻ (braille pattern dots-12456)er
5E^4-5⠘ (braille pattern dots-45)(contraction)
5F_4-5-6⠸ (braille pattern dots-456)(contraction)

See also

[edit]

References

[edit]
  1. ^IBM Corporation (1954).704 electronic data-processing machine: manual of operation(PDF).
  2. ^Raymond, Eric S. (2023-06-24)."AIVDM/AIVDO protocol decoding". AIS Payload Data Types. Retrieved2024-03-14.
  3. ^Mackenzie, Charles E. (1980).Coded Character Sets, History and Development(PDF). The Systems Programming Series (1 ed.).Addison-Wesley Publishing Company, Inc.ISBN 978-0-201-14460-4.LCCN 77-90165.Archived(PDF) from the original on May 26, 2016. RetrievedAugust 25, 2019.
  4. ^Walker, John (1996-08-06)."UNIVAC 1100 Series FIELDATA Code".UNIVAC Memories.Archived from the original on 2016-05-22. Retrieved2016-05-22.
  5. ^Jennings, Thomas Daniel (2016-04-20) [1999]."An annotated history of some character codes or ASCII: American Standard Code for Information Infiltration".sensitive research (SR-IX). FIELDATA. Retrieved2022-06-01.
  6. ^"Representing and Displaying Braille".DotlessBraille.org. 2002-02-20. Retrieved2024-03-14.
  7. ^Halleck, John (2000-08-24)."braille-ascii.ads".Braille.Ascii. Archived fromthe original on 2010-06-13. Retrieved2009-08-10.

External links

[edit]
Early telecommunications
ISO/IEC 8859
Bibliographic use
National standards
ISO/IEC 2022
Mac OSCode pages
("scripts")
DOS code pages
IBM AIX code pages
Windows code pages
EBCDIC code pages
DEC terminals (VTx)
Platform specific
Unicode /ISO/IEC 10646
TeX typesetting system
Miscellaneous code pages
Control character
Related topics
Retrieved from "https://en.wikipedia.org/w/index.php?title=Six-bit_character_code&oldid=1307556653"
Category:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp