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:

    Being a parent is such serious business that we dare not take it too seriously. Children are inherently funny. So are parents. We all are at our funniest when we are desperately struggling to appear to be in control of a new situation.
    Lawrence Kutner (20th century)

    I make it a kind of pious rule to go to every funeral to which I am invited, both as I wish to pay a proper respect to the dead, unless their characters have been bad, and as I would wish to have the funeral of my own near relations or of myself well attended.
    James Boswell (1740–1795)