![background image](http://html.mh-extra.com/html/epson/lx-80/lx-80_operating-manual_2419050101.webp)
• U
se
s
e
mi-colons
to prevent
the LX
-
80 from printing
c
a
rriage
r
e
tur
n a
nd line feed codes as pin patterns
in BASIC pro
grams
,
and take si
milar steps in other programming
language
s .
• D
o not p
u
t a
n
y
other commands
between the graphic
s
c
o
m
mand
and i
t
s data.
Our exa
m
p
l
e s
hould help you understand
the graphics mod
e bette
r
and may
h
elp y
ou find the problem when one of
y
our own pr
ogram
s
gives you unex
pect
e
d
results.
S
tring
va
riables
I
n
a
l
o
ng
a
nd complicated
graphics program
,
typing in th
e graphics
com
m
a
n
d
or
repetitive
data numbers
over and over can b
ecome
time
-
consu
m
i
ng
.
You can avoid much of the repe
t
itive
t
yping b
y
storing comma
nds
and data in string variables.
Look
at the
program
below
.
It is the same as the multi
ple
-
line
exercise ea
rl
ier
in the chapter except for the string variabl
es.
10 G
$
=
-
CH
R$(27) +
"
K" +CHR$( 100
H
CHR( 0)
20
A
$=CH
R$(85)+CHR$(42)
30 B$=CH
R$(42)+CHR$(85)
40 LPRI
NT
CHR$(27)
"
1";
50 FOR
R::
:
1T
O
3
60 LPRIN
T
G$;
70 FOR X=
l
TO 50: LPRINT
A$;
:
NEXT
X
80 LPRINT
90 I
.
PRI
NT G$;
100 FOR X=
1 TO 50: LPRINT
B$;
:
NEXT
X
1
1
0 LPRIN
T:
NEXT
R
120 LPRIN
T
CHR$(27)"@
"
N
otice that
th
e
first line stores the whole graphics comm
a
n
d
in
a
si
n
gle s
t
ring va
riable.
In order to do this you must put plu
s signs
between the e
lements of the command
.
Once
y
ou have don
e this a
t
the beginning
o
f
the program
,
each time you enter LPRI
NT
G$
;
you have iss
u
e
d the graphics command.
Lines 20 and 30 do th
e same
t
h
i
n
g w
it
h t
h
e
data used in this program.
As you can see
,
th
e
u
se o
f
st
r
i
n
g variab
l
es s
aves some typing even in this short progr
a
m.
In a
long p
r
ogram
it can save
y
ou much more time and effo
rt
.
G
ra
phics
and
low ASCI
I codes
Sending a
-
few of the codes between 0 a
n
d 31 wit
h B
ASIC or anoth
er
programming
lang
u
age ca
n
cause
p
ro
bl
e
m
s
on
so
m
e computer
s
ys
-
tems. The problem
is that most comp
u
ter
systems handle som
e of
these
codes in a special way instead
of de
l
ivering
them
t
o the
printer
.
Summary of Contents for LX-80
Page 1: ...LX 80 Printer P8492037 0 Y560991020 ...
Page 2: ...EPSON LX SOPRINTER Operating Manual ...
Page 8: ...The Parallel Interface Data Transfer Sequence Interface timing Signal relationships ...
Page 11: ......
Page 41: ......
Page 67: ......
Page 85: ......
Page 103: ......
Page 111: ......
Page 145: ......
Page 171: ......
Page 173: ......
Page 177: ......
Page 181: ......
Page 189: ......
Page 190: ......