i have made a "myfile.bas" where i have common subroutines and use common variables for specific added hardware modules, these are stated as " include ' in the main program code.
the main program calls the subroutines as required.
PB3 compiles the file , how ever the hex output when tested , shows that subroutines are being executed prior to being called from the main program.
its seems clear that from the point of where put the " include myfile.bas" in the main program it just jumps to that point and executes all the subs within "myfile.bas" without being called by the program
What am i missing to make it work correctly as if it were part of the main program but allow standard subrontines to be stored in "myfile.bas " and compile correctly.
cheers
sheldon
Bookmarks