The Macro Control Code - Star Micronics SG-10 User Manual

Star micronics printer user's manual
Table of Contents

Advertisement

L
-.
._-
I,._..
L
SG-IO/l5
is a multi-lingual
printer for it can speak in eight
languages!
SG- lo/ 15 changes languages by changing
11 char-
acters that are different for the different languages. These sets
of characters are called international character sets. The control
codes to select the international
character sets are given in Table
8-5.
The characters that change are shown beneath their ASCII code
in Table 8-6.
Table 8-6
Intemationad character sets
Country
35
64
91
92
93
94
%
123 124 125 126
U.S.A
#
@
[
\
1
A
a
1
1
1
France
f
i
'
c
9
A
s
c
cl
2
~
A
ii
ff
A
.
ii
ii
ii
D
England
f
@
[
\
I
A
'
t
I
>
Denmark
#
@
AZ
Q,
A
A
s
ze
$
A
-
Italy
i
Spain
ft
(U
i
R
i
A
'
"
ii
>
n The macro control code
The last of our group of miscellaneous control codes is definitely
not the least. It is a user-defined control code, called a macro
control
code.
The
term
macro
is
from
the
jargonese
macro-instruction which refers to an instruction
that "calls," or
uses a group of normal instructions.
In computer programming
macro-instructions
(which are similar to subroutines)
save pro-
grammers a lot of time and effort.
SG-10/15's macro can save
you a lot of time and effort also.
Here is how SG-10/15's macro works. You define your macro
by telling SG- 10/l 5 what normal control codes are to be included
in the macro. Then you can use the macro any time that you
want and SG-lo/15
will do all the things that you included in
the macro definition. You can include up to 16 codes in a single
macro.
You can even use the macro to store a frequently used
word or phrase. There are two control codes for the macro: one
to define it, and one to use it. They are given in the Table 8-7.
To see how this works we can build a macro that will reset the
printing style to normal, no matter what style it may be to start
with. The following program will define a macro to do this.
77

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sg-15

Table of Contents