16 gosub? You must be kidding me

Well, i was coding my very first program, i made plenty of sub-routines that call other sub-routines 'cause i like a well-organized code, but when i launched the syntax-checker, he yelled at me that i'm allowed to do only 16 gosub!

I'm sure it's in the FM, i must have missed it, but the thing is : why? Why only 16 gosub? Does anyone know? Gosh that's so frustrating! >_<

stack?
I asume you are talking bout the picaxe. If I remember correctly, you can define more gosubs than 16, but it can only remember 16 gosub calls.

i recall a discussion about
i recall a discussion about gosubs here on LMR, maybe you should have a look

I recall that the 28x has to
I recall that the 28x has to be set up for 256 gosubs in the options menu :slight_smile:

Sorry i didn’t precise

Sorry i didn’t precise “picase” because i’m posting in tge Picaxe forum ^^

And i have a 18x… i define A LOT of subroutines, but in my first test, i called 17 -_-v

Well, it p*sses me off a bit, but i managed to adapt my code…

"I recall that the 28x has to be set up for 256 gosubs in the options menu :slight_smile: "

Omg, i just checked, it works with the 18x! That’s just great, i posted not to have a solution, but just to express my feelings, and Fristl came with the perfect answer… Deus Ex Machina… Thanks a lot!!! :smiley: