Using RETURN in your sub-routines won't work unless you're using GOSUB to get to them.
if(Count_send == 2) then RESET_COUNT
The above is the same as using --
if(Count_send ==2) THEN GOTO RESET_COUNT
The GOTO is "implied" in the 1st version even though it's not physically inserted. GOSUB is what you'll need to use if you're using RETURN in all your sub-routines.
RETURN pops the return address from the stack so it knows where to RETURN to. Unless you've used GOSUB, you haven't pushed any return address onto the stack.
Bookmarks