Quote Originally Posted by Jerson View Post
...Gosubs are in a different category wherein the compiler can decide to use the stack - or in some cases - to use gotos to acheive the same functionality and is totally compiler dependent.
Ok, you got me on that one. How can GOTOs be used to achieve GOSUB logic?

The going part is not a problem, but how does it come back without using a stack or some such memory to remember where it came from?

Or does it replace the RETURN with a GOTO pointing to the statement following the GOSUB?

Robert