Hey @ all,
I wonder what happens within the µC when I write code that jumps out of a subroutine with the goto command?

Example:

Code:
main:
   GOSUB label
goto main

label:
   GOTO somwhereelse
RETURN

somwhereelse:
   DOSOMETHING HERE
GOTO main
I know from other BASIC dialects that one should'nt do this, because it messes up the pointers. But what happens in PBP eg. the PIC itself?

Is there a better solution for this problem?

Greetings, helloo