gosub/return

hello everyone,
I've seen the problem for a couple of days and spent all day today trying to track it down. I've commented out all GOSUBs in-between and it still happens...Why would my program reboot from a 'RETURN'? Does this only happen when there is not a match?
nothing left on the stack?
1) I can repeat the problem, but nothing seems to fix it.
2) I've reloaded the program over and over again
3) I use an LCD, but have put debug statements in to help track it down
4) I load the program, go to the failing routine, and it just repeats.
Any suggestion of any kind...even the (DA did you look at this or DA try this)....what a way to spend a day off work.[noparse]:)[/noparse]
On my way to get printer ink.
thanks
hmlittle59
I've seen the problem for a couple of days and spent all day today trying to track it down. I've commented out all GOSUBs in-between and it still happens...Why would my program reboot from a 'RETURN'? Does this only happen when there is not a match?
nothing left on the stack?
1) I can repeat the problem, but nothing seems to fix it.
2) I've reloaded the program over and over again
3) I use an LCD, but have put debug statements in to help track it down
4) I load the program, go to the failing routine, and it just repeats.
Any suggestion of any kind...even the (DA did you look at this or DA try this)....what a way to spend a day off work.[noparse]:)[/noparse]
On my way to get printer ink.
thanks
hmlittle59
Comments
Go through your program, carefully matching up GOSUBs and RETURNs (literally ... print out the program and draw lines. Make sure there are no program sections that "fall through" unless you want it, then mark it on the listing).
I had to purchase a refill kit for my printer because Walmart was all out...what a mess....now lets see if it will print...thanks for the advise.
hmlittle59
After making a big mess of refilling the ink cartridge, then doing a print out i found the fix within 10 mins. It was from the originating routine...( ON work GOSUB......)...I still think it should have worked as is. I changed it to GOTO and it seems to be working. I'll test some more to be sure. thanks
hmlittle59