2. 8.23.6 Control Commands (Cent’d)
When the specification is made omitting WHILE
L< conditional expression>], the blocks between
DO m and END m are repeated infinitely. Gen-
erally, this is used in the format shown below .
.;
.
I
IF[<Condlt>onal
GO TOn;
expmssmn>]
I
-Nn.. ,
5.
Triple DO-loop nesting is permitted for each
micro progralm.
I
DO1;
I)ol;
D02;
D02;
D03;
D03;
(i
Notes:
1.
DO m should be specified before END m.
6. The codings shown below cause an error:
2. m of DO m and END m should have the same
value. However, only 1, 2, or 3 may be specified
in m.
DO 1
1
The valueofm, 1,
2, or 3
iscalledtheidentification
number, whichisused by
END 1 ~ Do and END to calleach
other.
D02 --l
3. The same identification number may be used
repeatedly except where repeat ranges overlap.
4. To get out of a Do loop, a GO TO n can be
used. However,
a GO TO n does not enable
entrance to a DO loop as shown below:
L
DoI;
5
al
GOTO 100 ;
25
,%
END 1 ;
!$
N1OO ;
!__
GOTO100;
:
DO1;
z
d
N1OO ;
.2
Q
END 1 ;
G65..
ABC ;. Gb5... XYZ ;
END 3 ;
END 3 ;
END 2 ;
END 2 ;
END 1 ;
END 1 ;
Enabled
Enabled
(ii)
(iii
?
DO1;
J
?
DO1;
END 1 ;
--l
DO1;
1
END 1 ;
J
‘?
END 1 ;
-J
DO1;
1
The returndestination
ofEND 1 isunknown.
One END 1 ismissing.
DO1; I
‘?
D02;
‘1
END 1 ;
I
“-1
END
2 ;
OverlapofDO
rangesisnot
D02;
permitted.
Rewriteas
1
END 2 ;
shown right.
ENDl; —
82