Graphics Mode
The graphics m
ode command is quite different from the oth
er com-
mands cove
r
ed s
o far in this m
a
nual
.
For most of the oth
e
r
LX-80
modes, suc
h
as
italic and emphasized
,
one ESCape code turn
s the
mode on and a
n
o
th
e
r turn
s
it off
.
With graphic
s,
th
e
comm
a
n
ds are
more complicate
d b
e
caus
e
th
e
c
o
d
e
that turns on a graphi
cs mode
also specifies how
m
a
n
y
column
s
it
w
ill u
se
.
The LX-80 has seve
ral differ
e
nt graphics densities. Initially
, to keep
things simple, o
nl
y
one will b
e
described. Once you have m
astered
this the others
will be straightforward
.
This graphics mod
e
i
s ca
l
led
single density
mode and its ESC
a
pe code is:
<ESC>
K nl
n
2.
The values of n
l
a
nd n
2
ar
e
a s
e
qu
e
nc
e
of two ASCII cod
es which
determine the
number of columns of graphics data to be prin
ted on
a
l
ine. You can
calculate the values of nl and n2 from th
e
num
ber of
columns n as fo
llows:
nl
=
remainde
r on dividing n by
2
56
n2
=
the intege
r
(
i
.e.
the whol
e
number) part of the division
of n by
256
In Microsoft B
ASIC these v
a
lue
s
would be obtained from
the ex-
pressions:
nl
=
n MOD 2
56
n2
=
INT (n/256)
Some versions
of BASIC do not h
av
e the MOD function
. In this
case, the express
ions used will b
e
:
nl
=
n - n2
*
2
56
n2
=
INT (n/2
5
6
)
Since calculatio
n of nl requir
es
the value of n2
,
you will h
ave to
calculate n2 firs
t
.
When you have
carried out the calculation
,
you can then u
se the
following line i
n a Microsoft BASIC program
:
LPRINT
C
HR$(27)
"
K"CHR$(Nl)CHR$(N2);
The number of c
olumn
s
re
se
r
v
ed i
s
th
e
first numb
e
r plu
s 2
5
6 t
i
mes
the second nu
mb
e
r
.
Sinc
e
th
e c
ommand i
s
set up for two nu
mbers,
you must supply
two e
v
en if
y
ou onl
y
n
ee
d on
e.
When
y
ou n
eed less
than 256 colu
mn
s,
just mak
e
nl the number of column
s yo
u
are
reserving and
mak
e
n2 a z
e
ro.
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: ......