
6. FUNCTIONS OF THE MACRO
EXECUTOR
B–62093E–1/02
PROGRAMMING
72
%;P___;P___; .. ;P___;P___;P___; ... ;P___;P___;P___; ... ;P___;%
|←#10000 to #10009→|←#11000 to #11019→|←#12000 to #12009→|
“R11” “R31” “R21”
(2) Function for inputting macro variables
By adding address Q to G337 described in (1) of Section 6.4.3, the
number of variables to be input can be specified. When address R is
also specified, data reading can be continued.
(Command format)
G337 Pp Qq R99;
---------
P : Number of the variable to be read (Valid when variable
number N is not specified on the input tape)
Q : Number of variables to be read (Can be omitted)
R99 : Reading to be continued (Can be omitted)
(a) When address Q is specified, the number of variables to be read
can be specified. After the specified number of variables are
input, completion code #8539 is set to 99 to indicate that data
reading can be continued. If % (EOR) is read before reading the
specified number of variables, completion code #8539 is set to 0.
If address Q is omitted, the system assumes that an infinite
number is specified.
(b) When R99 is specified, the remaining variable data can be read
after the specified number of variables are read and completion
code #8539 is set to 99. If data reading is continued without R99,
the data of a variable is lost in the middle of reading because of
a significant information check. (The data up to the first “;(LF)”
is skipped.)
(Example) Reading the tape output according to the example
described above
G330 Pp Bb ... ;
G337 P100 Q10 ;⇒
IF[#8539 NE 99]GOTO888;
The data of the first ten
variables is read into #100
to #109.
(After the data is normally
read, #8539 is set to 99.)
G337 P15000 Q20 R99 ;⇒ The data of twenty vari-
ables is read into #15000
to #15019.(After the data
is normally read, #8539 is
set to 99.)
G337 P16000 R99 ;⇒
IF[#8539 NE 0]GOTO888;
G331 ;
The remaining variable
data is read into #16000 to
#16009.
(After the data is normally
read, #8539 is set to 0.)