Appendix C/ Programming Information - Radio Shack TRS-80 CGP-220 Operation Manual

Table of Contents

Advertisement

Appendix C/ Programming
Information
The items below should be considered when you program the computer.
1. When Printer is turned on.
Text Mode is automatically selected.
1/6" (Full) line feed is in effect.
Normal characters are selected (not Elongated).
Buff er memory is completely cleared.
2. Normal and Elongated characters can be intermixed in the same line. This may
cause unexpected auto-wraparound. To prevent this, intermix Normal and
Elongated characters only in short lines.
3. Elongated characters are not terminated at the end of the line but until a
terminating code is received.
4. In the Character Repetition code, printable characters can be repeated as many
times as provided for in the count number (with a maximum of256).
If any control code is received for repetition, it will be ignored or printed as X.
5. The Head Positioning code can be used at any carriage position. If designated dot
column address is in the current text which is already printed out, overprint will
occur.
6. Line feed in the Bit Image Mode advances the paper 7 dots (0.12 inch).
7. Bit Image and Text Mode can be used in the same line.
However, "descending" text characters (p, q, j, g, etc .. .) will be missing the
lowest dot.
Programming Examples
Note to Model II Programqiers:
If the Printer goes OFF-LINE during a print operation, and remains off-line for a
certain period of time, Model II TRSDOS will present an error message. Application
programs should be written to trap such errors, inform the operator of the error
condition, and give the operator a chance to correct the condition and continue
printing. If it's a BASIC applications program, an 1/0 error will occur, and the
operator may type CONT (ENTER).
The BASIC statements LPRINT and LLIST output to the Line Printer. See your
Computer's Reference Manual for syntax details.
Examples:
LLIST
Lists the resident program to the Printer.
LPRINT "THIS IS ATEST"
Prints the message in quotes and tells the Printer that the next printable
character begins a new line.
LPRINT "THIS IS PART OF ALINE";"THIS IS THE REST"
Prints both messages on the same line (because of the semicolon). The
next printable character received starts a new line.
37

Advertisement

Table of Contents
loading

Table of Contents