Chapter 4. programming – IAI America S-SEL-E User Manual
Page 148
![background image](/manuals/350298/148/background.png)
Page 143
EDSR (End Subroutine)
[Function]
Declares completion of subroutine.
*Subroutines are generally used at the end of a program.
[Example]
EDSR
Declare completion of subroutine.
EDSR is always added at the end of a subroutine.
2-7 Subroutine Control Commands
BGSR (Begin Subroutine)
Subroutine 1
Finish
Chapter 4. Programming
Start
[Function]
Declares start of subroutine.
*Subroutines are generally used at the end of a program.
[Example]
BGSR
1
Declare start of subroutine.
E x p a n s io n
c o n d i t io n
( A N D · O R )
I n p u t
c o n d i t io n
( I / O · F l a g )
C o m m a n d
P o s t
( O u t p u t p o r t · F la g )
C o m m a n d
O p e r a n d 1
O p e r a n d 2
B G S R
S u b r o u t i n e N o .
E x p a n s i o n
c o n d i t i o n
( A N D · O R )
I n p u t
c o n d i t i o n
( I / O · F l a g )
C o m m a n d
P o s t
( O u t p u t p o r t · F l a g )
C o m m a n d
O p e r a n d 1
O p e r a n d 2
E D S R
Subroutine 1
B G S R 1
E D S R
B G S R 1
E D S R