ATASCII - Control Characters

Control Characters

The most notable difference between standard ASCII and ATASCII is the use of control characters. In standard ASCII, a character in the range 0 to 31 is construed as a command, which might move the cursor, clear the screen, end a line, and so on. Some of these were designed for use on printers and teletypes rather than on screen (to advance the paper, overtype, and so on).

ATASCII has a character set of only 128 characters. If the high-order bit is set on a character (i.e., if the byte value of the character is between 128 and 255) the character is generally rendered in the reverse video (also called "inverse video") of its counterpart between 0 and 127, using a bitwise negation of the character's glyph. This is done by the ANTIC chip. The two exceptions to this rule are that an "escape" character (ATASCII and ASCII 27) with its high order bit set becomes an "EOL" or "End Of Line" character (ATASCII 155; ASCII 13), and a "clear screen" character (ATASCII 125) with its high order bit set becomes a "bell" or "buzzer" character (ATASCII 253; ASCII 7). No Atari printers actually have a bell, but the computer will sound if it is written to the screen device.

The ATASCII control characters have associated graphic symbols that can be displayed by preceding them by the "escape" character (ATASCII 27). For example, a right arrow can be displayed on a screen or printer by preceding it with the escape character followed by the "cursor right" character itself (ATASCII 31).

The text cursor was simply implemented by inverting the character at the cursor position (by XOR with $80). It did not flash.

Read more about this topic:  ATASCII

Famous quotes containing the words control and/or characters:

    The three-year-old who lies about taking a cookie isn’t really a “liar” after all. He simply can’t control his impulses. He then convinces himself of a new truth and, eager for your approval, reports the version that he knows will make you happy.
    Cathy Rindner Tempelsman (20th century)

    Trial. A formal inquiry designed to prove and put upon record the blameless characters of judges, advocates and jurors.
    Ambrose Bierce (1842–1914)