Sel language – IAI America DS-S-C1 User Manual
Page 55

53
[Function]
Commands end of subroutine. This is always required at the end of a subroutine. After this, the
program moves to the step after the EXSR called out.
[Example 1] Refer to the EXSR command.
[Function]
Commands the start of the subroutine number designated in operand 1.
[Example]
Refer to the EXSR command.
n
o
i
s
n
a
p
x
E
n
o
i
t
i
d
n
o
c
)
R
O
·
D
N
A
(
t
u
p
n
I
n
o
i
t
i
d
n
o
c
)
g
a
l
F
·
O
/
I
(
d
n
a
m
m
o
C
t
s
o
P
)
g
a
l
F
·
t
u
p
t
u
O
(
d
n
a
m
m
o
C
1
d
n
a
r
e
p
O
2
d
n
a
r
e
p
O
R
S
G
B
.
o
N
e
n
i
t
u
o
r
b
u
S
n
o
i
s
n
a
p
x
E
n
o
it
i
d
n
o
c
)
R
O
·
D
N
A
(
t
u
p
n
I
n
o
it
i
d
n
o
c
)
g
a
l
F
·
O
/I
(
d
n
a
m
m
o
C
t
s
o
P
)
g
a
l
F
·
t
r
o
p
t
u
p
t
u
O
(
d
n
a
m
m
o
C
1
d
n
a
r
e
p
O
2
d
n
a
r
e
p
O
R
S
D
E
[Function]
Executes the subroutine number designated in operand 1.
Note: Only a subroutine number within the same program is enabled.
[Example1]
EXSR 1
Execute subroutine 1.
:
:
EXIT
BGSR 1
Begin subroutine 1
:
:
:
EDSR
End subroutine 1.
[Example 2]
LET
1
10 Assign 10 to 1
EXSR
*1
Execute subroutine 10 (content of variable 1).
12. SEL Language
●
BGSR (Begin Subroutine)
●
EDSR (End Subroutine)
●
EXSR (Execute Subroutine)
n
o
i
s
n
a
p
x
E
n
o
i
t
i
d
n
o
c
)
R
O
·
D
N
A
(
t
u
p
n
I
n
o
i
t
i
d
n
o
c
)
g
a
l
F
·
O
/
I
(
d
n
a
m
m
o
C
t
s
o
P
)
g
a
l
F
·
t
u
p
t
u
O
(
d
n
a
m
m
o
C
1
d
n
a
r
e
p
O
2
d
n
a
r
e
p
O
R
S
X
E
.
o
N
e
n
i
t
u
o
r
b
u
S