Feedback on two items

mynet43

Member
1. Minor nit. The Programming Editor Options Menu shows "256x gosub" for the 18X. The directive is "#gosubs 255". Is it 255 or 256? Please clarify in the manual when #gosubs is needed, apparently NOT when the "256x gosub" is selected.

2. Would it be possible for the compiler to detect when the limit of four nested gosubs is encountered. I just spend two days debugging what looked like good code :(

Thanks for a great forum!

 
 

Fowkc

Senior Member
The #gosubs directive is used so you don't have to change the options yourself every time you want to download a program to a new device. Useful if you're programming multiple chips with different programs on each.

At least I think that's what it does.
 

Technical

Technical Support
Staff member
There are 256 gosubs allowed, but 1 is reserved for 'interrupt' and so there are only 255 general purpose. You can actually use 255 or 256 within the #gosubs directive. This directive is only required if you do not set it within the View>Options dialog.

To check your stack usage try to simulate the program, this will give an error message upon overflow.
 
Top