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:

    Above and beyond paying attention to feelings before and after a separation, never threaten your child with leaving or loss of love in an effort to control her behavior. Children believe their parents’ assertions that “I will send you away,” “I won’t love you any more,” “I’ll go away,” and are terrified with good reason. Fear is a very poor way of disciplining a child, and it can cause severe lifelong anxiety.
    Alicia F. Lieberman (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)