User`s guide

OPERATIONS
Secondary
Address
Print
in
Graphic
Mode
Print
in
Business
Mode
0
(default)
7
1.
SA=0:
Printing
in
Graphic
Mode
This
secondary
address
causes
the
Printer
to
print
ASCII
data
in
Graphic
{Upper-case/Graphic
character)
mode.
As
mentioned
before,
this
secondary
ad
dress
is
the
default
value
and
need
not be coded.
The
format
for
this
command
is
35
follows:
OPEN
4,4
(OPEN
4, 4r
0)
PRINT-4
<
,
variable/data
>
CLOSE
4
Try
the
following
sample
programs:
The
first
program
will
print
three
types
of
print
In
Graphic
mode
on
your
Printer.
EXAMPLE
1r
100
REM
3H-0-...
PRINTING
IN
GRfiPHIC
MODE
110
0PEN4/4
;
REM
OPEN4,»4>0
120
FRIHTtf4,"SECONDRRV
RDDR^SS
0"
138
R*«"PRIHTINO
IM
DRflPHTC
KODE"
156
PR:INT#4
.
12345S?89
166
FOR
I=64
TO 95
180
NEXT
T
1
90
FOR
J=
i
TO
B
■■
PR
I i
fT
1*4
■■
r
\EKT
T
200
CL0SE4
RUN
PRINTING
IN
GRflPHIC
MGDE
123456739
The
second
sample
program
will
print
ASCI!
code
table
in
Graphic
Mode.
The
ASCII
SQ0-S1F
and
S80-S9F
are
special
control
characters,
so
this
code
table
won't
print these
codes.
22
Program
prints
out
a
bit
image
graphic
.
REM
CHR*<8>
OPEN
4.-
4
-BIT
IMPGE
GRRPHIC
PRINTING
:REM
PRINT
IN
GRhPHTC
MODE
12©
i
30
140
ISO
I
60
1
70
180
!
90
219
250
268
270
2S0
290
300
310
320
330
!
-1
0
~^i
>rr
ru
FOR
RQW=1
TO
3
FOR
COLUMN**
1
TO
iS
REflD
R
=
fi*
<
ROM
>
=Fl*
<
ROW
)
+CHR*
<
R
NEXT COLUMN
NEKT
ROW
PRINT#4,BSi;
FOR
ROW=I
TO
3
NEXT
RON
PRINT#4>0E*
FOR
1.-1
TO
S'PRIHT#4!HEXT
L
CL0SE4
END
DRTR
129,129,250,253,158,158,255,255
DRTR
153,
15Sj
250, 230,
12?,
129..
128,
128
DRTR
12S.H
128, 159, 159,
243-.
243..
179-
179
DRTR
243,24:?-,
J!59,
159,
12S,
3
28-
123-
12S
DflTR
129, 12S,
130,
13©, 131, 131,
128..
128
DHTR
J
31
j
131
,
130,
130..
128, 12B,
1
2S,
1
23
RUN
W
{■>-
continuous
print
lines!
Next
example
is
ta
print signs
of
the
zodiac
by
bit
image
graphic
printing.
Signs
are
not
exactly
clear
because
they
consists
of 7
(vertical)
x
5
(horizontal)
dots.
reni
chr$K8"?
-
-
-
bit.
irriASe
Si^-aPhi
c
f-r
i
nt
i
ns
11©
open
7-4,7
r-en'i
Print
in
business
mode
120
bs.*=Chr**
■'
S
:^
;
de*=chrt
(
15
)
130
:
140
dim
a*C125,b*<I25
150
for
i-1
to
12
168 for
.i~l
to
6
31