3. Instructions
Function
SBS(091) calls the subroutine with the
specified
subroutine
subroutine
is
between SBN(092) and RET(093). When
the subroutine is completed, program
execution
continues
instruction after SBS(091).
A subroutine can be called more than
once in a program.
Subroutines can be nested up to 16
levels.
Nesting
subroutine
is
subroutine program, such as shown in the
following example, which is nested to 3
levels.
SBN 10
to
SBN 11
to
RET
680
number.
The
the
program
section
with
the
next
is
when
another
called
from
within
a
SBN 11
SBN 12
to
to
SBS 12
to
RET
RET
Main program
Subroutine
program
(SBN(092) to
RET(093))
Main program
Subroutine
program n
Two-level
nesting
Subroutine
program m
Program end
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Execution condition ON
Program end
Execution condition ON
Execution condition ON