SR-IO/15 is a multi-lingual printer for it can speak in eight languages! SR-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 84

Internationad character sets

countly 35 64 91 92 93 94 96 123 124 125 126

U.S.A # @ [ , \ . I A * { . I 1 N

Denmark 1’ # 1 @ 1 ,

Sweden I # I B I X I 0 I

W The macro control code

The last of our group of miscellaneous control codes is definitely not the least. It is a user-definedcontrol code, called a macro

control code. The term macro is from the jargonese macro-instructionwhich 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. SR-10/15’s macro can save you a lot of time and effort also.

Here is how SR-10/15’s macro works. You define your macro by telling SR- 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 SR-IO/l5 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

Page 87
Image 87
Star Micronics SR-10/I5 user manual