Working With Basic Programming - Oki OKIMATE 10 Handbook

For commodore computers
Table of Contents

Advertisement

W riting T our Own Program s
BASIC PRINTING
O P E N
P R I N T #
C L O S E
To print a program you need:
. . . an OPEN statement
. . . a P R I N T # statement
. . . a CLOSE statement
Start the program with an OPEN statement,
like this:
ID OPEN 3 , 4
This opens up a channel to the printer. The
first number after OPEN identifies the chan­
nel—it can be any number from 0 to 255.
The second number identifies the device the
channel is being opened to— OKIMATE is cur­
rently selected as 4. Other devices, such as a
disk drive or cassette tape must be given
other numbers. (See page 51 for further de­
tails.)
Next comes the P R IN T # statement which
looks like this:
2 D
P R I N T # 3 ,
The number after P R IN T # must be the same
as the first number in your OPEN statement.
(We used PR IN T #3 because we used 3 in our
OPEN statement.) This must be followed by a
command and then OKIMATE will print
everything between the quotation marks.
You can also print the results of a calcula­
tion—like this:
2 5
P R I N T S , 5 * 3
23
" P R I N T
T E X T
H E R E "

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents