Download Print this page

Advertisement

166
- - -
- - - - - - - - - - - - - "
Gemini User's Manual
40 characters in length. To avoid this problem, you must remember
another form of the print command. Instead of
LPRINT
CHR$(27);
"5";
you need to open a device port, using the OPEN statement:
10
OPEN
#7,8,0,"P"
Note: #7 tells the Atari to open file number 7, the #8 tells it that
you are using file number 7 as an output device;
°
is not used, and
the "P" assigns the device to the printer.
• •
• •
I
• •
• •
• •
Once the file is assigned, you would use the following
statement:
PRINT
#7;
CHR$(27);"5";
• •
At the end of your program, you need to purge the printer buf-
fer and close the file. Use the following statements:
PRINT
#7
CLOSE
#7
Because Atari uses codes 0-31 for its graphics characters,
you may want to add 128 to the ASCII control codes. For exam-
ple, send CHR$(141) instead of CHR$(13) for a carriage return. As
another example, send CH R$(155) instead of CH R$(27) for the start
of an escape-function code sequence.
The Atari BASIC does not support the BASIC tab function.
If you have further questions, the first step to finding the answer
is to consult your Atari user's manual.
• •
• •
• •

Advertisement

loading

This manual is also suitable for:

15xGemini-10xGemini-15x