User`s guide
2.
SA-7:
Printing
in
Business
Mode
To
change
the
printer
to
print
an
Business
(LaweryUpper-Case
Character]
Mode,
you
must
open
the
printer
file
on
SA=7:
The
format
for
this
command
is
as
follows:
OPEN
7,4,
7
PRINT#7<,
variable/data
>
CLOSE
7
Try
the
following
sample
programs:
The
first
program
will
print
three
types
of
print
in
Business
mode
on
your
Printer,
EXAMPLE
1:
ie0
rem
sa=7..
Pprinrtln9
if
business
mode
.110
oPen
7- 4j
7
1
2@
PrInt#71
"Secon^irv1
Fiddre^
7"
13@
5.f-"PriFitin9
in
Business
Mode"
14G
P
r
i
nt
#7
,
-a$
150
p
r
i
nt#7
>
123456789
160
f
or
i
=*■-
to
95
170
p
r
i
nt-#7.-
c
hr*
<
i);
180
next
i
=
i
to
!
nex
close
RUN
Se
c o n d
a. t~
y R d d r e
£-
s
7
Pr-irrtine
in
Business
Mode
123436789
@abcd^f
Shi
o
KI
mrt&P
(trst.uwuwyzCf31*-
The
second sample
program
will
print
ASCII
code
table
in
Business
Mode.
The
ASCIJ
SOO-S1F
and
S80-S9F
are
special
control
characters,
so
this
code
tabie
won't
print these
codes.
EXAMPLE
2:
rem
£
a~7
. .
-
p
r
i
^t.
i
oPen
7.,
4,
7
n9
i
n
bus
i
nress
24
5.
Now
add
128
1o
total
you
had
for
each
column
in
step
4, tn
our
example
we
add
128
to
24
for
a
total
of
152.
6.
Put
your
final
total
for
each
column
into
a
data
statement
in
column
order.
1
2
4
8
4n
15
32
64
0
o
0
■
0
o
o
o
0
■
0
0
o
•
•
*
•
■
ft
c
0
o
0
0
o
•
o •
o •
o
•
o •
•
o
•
o
•
o
■ o
• 0
0
a
0
0
0
a
•
•
*
0
*
*
•
■
o
n
0
9
0
0
0
Q
0
•
o
o
G
r;
0
O
o
0
o
G
0
0
0
o
Q
0
+128
152
152
254 254
146
146
255
255
146
146
254
254
152
152
128
128
The
DATA
statement
in
your
program
will
read:
DATA
152, 152,
254,
254,
146, 146,
255,
255
DATA
146, 146.
254,
254,
152,
152,
128,
128
The
following
program
will
print
a
Flying
object
5
times.
190
REM
CHR*<S>-..eiT
IMRGE
GRHPHIC
PRIHTIMG
110
OPEN
4,4
:REM
PRINT
JM
GPRPHTC
MOPE
12&
BS*=CHR*;*
8
>
:
DE**CHR*
'■
15
>
H
3@
-
140
f\'S-=""
150
FOP
I«]
TO
lei
160
PFRD
R.
R*=fl*+CHR*<R>
17P
f-^EXT
T
180
:
190
FOP
-J=i
TO
5
.:
0E$
This
control
code
defirvo
1/6"
line
feed
(separate
priniod
lin&l
£10
NEXT
J
240
CL0SE4
250 END
TO
8
=
..--^
DRTR
152,
152^254>254.
?.4^.
f,
!■;■',
:>?■=;
■■
2S© DPTH
14t,146,254,254^152.152.1£S.12^
After
typrng
RUN,
you
get the
result
below:










