From Amiga Coding
Jump to: navigation, search

an example can be found on AMOSPro_Examples:Examples/H-0/Help_3.AMOS

Jumps to subroutine in your program. At the end of your routine you should use a RETURN statement to return to the next instruction after the GOSUB.

Gosub linenumber : Rem jump to subroutine at linenumber
Gosub label : Rem jump to this AMOS Professional label
Gosub expression : Rem jump to resulting label/line