Commodore CBM Printer 4022 User Manual page 23

Hide thumbs Also See for CBM Printer 4022:
Table of Contents

Advertisement

A
printout of
a
program you
place
in
your computer's
memory
looks
lii<e
this:
10
OPEN
4..
4
2fH
FOR 1=32
TO
95
:fl$=fl$+CHR$>::
I
>
:NEKT
30 FOR
1
=
160 TO
223:Et=E$+CHR*'::i::':NEXT
40
i::f="a"+R*
50
ri*=":-J"+E*
60 Ef="W"+fi$
70
F*="»r+B*
30
G*="W"+C$
90
H*=":ifl"+D$
100
PPINT#4..i::HR$':.l>"CEri
4022 PRINTER
CHflRflCTER
SET"
1 i
PR
I
NT#4
:
PR
I
NT#4
:
PR
I
NT#4
120
PRINT#4..fl*
130 PRINT#4..E$
140
PRIHT#4..i::$
150
PRINT#4..ri$
160 PRINT#4..E$
170 PRINT#4..F$
180 PRINT#4..G$
190 PRINT#4..H$
200
Cf1D4
2
1
PRI
NT
:
PR
I
NT
:
PR
I
NT
:
PR
I
NT PR
I
NT
220 LIST
Here
is
an explanation
of
each
statement
in
the
program.
Line No.
Explanation
10
Opens
the
printer
as a
file
for printing
20
Sets
A$
equal
to
a
string
containing
all
the unshifted characters
from
the
keyboard
30
Sets
B$
equal
to a string
containing
all
the
shifted
characters
from
the
keyboard
40
Sets
C$
equal
to
the
set of
all
unshifted characters printed
in
reverse
field
50
Sets
D$
equal
to
the
set of
all
shifted
characters
in
reverse
field
60-90
Each
time a
PRINT
statement
is
encountered
as
in
lines
120-190, a
Carriage
Return
is
executed
(unless a
semicolon
is
placed
at
the
end
of
the
preceding
PRINT
statement). Therefore,
each
string
as
in
lines
160-190
must
begin
with a
Cursor
Down
to reset
the
printer to
lowercase.
-
18-

Advertisement

Table of Contents
loading

Table of Contents