Navigation:  Reference > Commands >

Gosub Label

Print this Topic Previous pageReturn to chapter overviewNext page

 

This command will temporarily transfer control to a subroutine.  The first line of that routine must be a standard line label.

 

 

GOSUB labelRequired - Transfer program control to the line label.

 

 

COMMENTS

A subroutine 'called' through this approach must use the RET (Return) command when finished.  Unlike a function, no data may be returned.  The program will continue with the next line after the original GOSUB (once the RET command has been executed from the subroutine).

 

 

SEE ALSO

GOTO

 

 


Page url: http://www.cassoftware.com/tas/manual/gosublabel.htm