Stack underflow using sample code from Manual 3

nick12ab

Senior Member
This is because the code lacks a goto main (or end) after the last for loop, so code execution falls into the subroutines directly below until the return statement is reached, where the stack underflow occurs because the subroutines weren't accessed using a gosub.
 
Top