Code Page 437 - Difference From ASCII

Difference From ASCII

Code page 437 is based on ASCII, with the following modifications:

  • Codes from the C0 control range (00hex to 1Fhex) and ASCII DEL (7Fhex) can assume their original function as control characters, but also function as graphic symbols when displayed in text mode from the screen buffer. For example, DEL and most of the C0 control codes are displayed graphically in a screen editor like MS-DOS Editor or when written to the screen via the DOS type command; by writing directly to the screen memory rather than using the DOS or BIOS character-output functions, an MS-DOS application can display all of them on the screen. The graphics include smiling faces, card suits, and musical notes. Code 127 (7Fhex), DEL, shows as a "house". This behavior is not specific to code page 437, but shared by all DOS code pages and so-called Windows OEM code pages, which generally resemble code page 437.
  • The high-bit range, 128 to 255 (80hex to FFhex), is mapped to various symbols: a few European characters (accented Latin letters, etc.) in no particular order and not sufficient for representation of most Western European languages; box drawing characters; mathematical symbols; and a few Greek letters commonly used in mathematics and physics.

The repertoire of code page 437 was taken from the character set of Wang word-processing machines, according to Bill Gates in an interview with Gates and Paul Allen that appeared in the 2 October 1995 edition of Fortune Magazine:

"... We were also fascinated by dedicated word processors from Wang, because we believed that general-purpose machines could do that just as well. That's why, when it came time to design the keyboard for the IBM PC, we put the funny Wang character set into the machine—you know, smiley faces and boxes and triangles and stuff. We were thinking we'd like to do a clone of Wang word-processing software someday."

The selection of graphic characters has some internal logic:

  • Table rows 0 and 1, codes 0 to 31 (00hex to 1Fhex), are assorted dingbats (complementary and decorative characters). The isolated character 127 (7Fhex) also belongs to this group.
  • Table rows 2 to 7 (except character 127, 7Fhex), codes 32 to 126 (20hex to 7Ehex), are the standard ASCII printable characters.
  • Table rows 8 to 10 (8hex to Ahex), codes 128 to 175 (80hex to AFhex), are a selection of international text characters.
  • Table rows 11 to 13 (Bhex to Dhex), codes 176 to 223 (B0hex to DFhex), are box drawing and block characters. This block is arranged so that characters 192 to 223 (C0hex to DFhex) of the rows 12 and 13 (Chex and Dhex) have all right arms (except 217 (D9hex)) or right filled areas (except 221 (DDhex)), and this is due to the following technical reason: the original IBM PC MDA display adapter stored the code page 437 character glyphs as bitmaps eight pixels wide, but for visual enhancement displayed them every nine pixels on screen (eight plus an additional gap). Thus characters with connections at their right edge had to duplicate their eighth pixels to avoid visual interruptions in the designs built up with them. This pixel extension is done by special hardware circuitry, and only this character subset is affected.
  • Table rows 14 and 15 (Ehex and Fhex), codes 224 to 255 (E0hex to FFhex) are devoted to mathematical symbols, where the first twelve are a selection of Greek letters commonly used in physics. Characters 244 (F4hex) and 245 (F5hex) are the upper and lower portion of an italic long S, the symbol used as the integral sign (∫), and they can be extended with the character 179 (B3hex), the vertical line of the box drawing block. Characters 249 (F9hex) and 250 (FAhex) are almost indistinguishable: the first is slightly larger than the second, which resembles the typographic middle dot (·). The character 255 (FFhex) is merely blank, and acts as a kind of non-breaking space in order to arrange math formulae.

Read more about this topic:  Code Page 437

Famous quotes containing the word difference:

    In my utter impotence to test the authenticity of the report of my senses, to know whether the impressions they make on me correspond with outlying objects, what difference does it make, whether Orion is up there in heaven, or some god paints the image in the firmament of the soul?
    Ralph Waldo Emerson (1803–1882)