Vector Basic Interpreter Basic 80 Reference Manual - page 58
Purpose:
Remarks:
number> is subroutine. the first \ A subroutine may be called any number of times in a program, and a subroutine may be called from within another subroutine. Such nesting of subroutines is limited only by available memory. The RETURN statement(s) in a subroutine cause BASIC-SO to branch back to the statement following the most recent GOSUB statement. A subroutine may contain more than one RETURN statement, should loqic dictate a return at different points in the subroutine. Subroutines may appear "anywhere in the program, but it is recommended that the subroutine be readily distinguishable from the main program. To prevent inadvertant entry into the subroutine, it may be preceded by a STOP, END, or GOTO statement that directs program control around the subroutine. 10 GOSUB 40 20 PRINT "BACX FROM SUBROOTINE" 30 END 40 PRINT "SUBROUTINE" 1 S'OPRINT " IN"; 60 PRINT " PROGRESS" 70 RETtmN RUN SUBROOTINE IN PROGRESS BACK FROM SUBROUTINE Ok