====== GOSUB ====== [pet] [vic20] [c64] [c16] [cplus4] [c128] [x16] [m65] ===== Syntax ===== GOSUB The ''GOSUB'' command calls a subroutine marked by a label. ''RETURN'' will pass control back to the caller. Unlike [[subroutines]], labelled code points do not start a new local scope. ===== Example ===== ' ** subroutines ** GOSUB first_routine END first_routine: PRINT "hello world" GOSUB second_routine RETURN second_routine: PRINT "and hello again" RETURN Make sure you use the ''[[END|END]]'' command before your routines if you don't want them to be executed in the normal program flow (like in the example above).