Careful when using nested subs... may run into stack overflow sooner than you may think.
You should rethink of your whole program. Maybe INTs are not needed at all. General rules, keep ISR short, set variables and/flags in, once you get out, your main program will check those variables and branch to the according routines.
If you plan to use gosub/goto in your ISR, the routine you will jump to have to be within the DISABLE/ENABLE code section.
Last edited by mister_e; - 29th May 2008 at 05:14.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks