They get placed, line by line, exactly where you put the INCLUDE statement. If you you have variables declared inside the included file which you are trying to use "before" actually including the file you'll get errors.
If the following is placed in an include file
Code:
myVAR VAR BYTE
TestIt:
HSEROUT["This is a test",13]
High PortB.0
RETURN
And your complete program looked like this:
Code:
INCLUDE "myIncludeFile.pbp"
Start:
Low PortB.0
GOSUB TestIt
Pause 1000
Goto Start
It would be exactly the same as
Code:
myVAR VAR BYTE
TestIt:
HSEROUT["This is a test",13]
High PortB.0
RETURN
Start:
Low PortB.0
GOSUB TestIt
Pause 1000
Goto Start
See? The INCLUDE statements just takes the content of the file and places it, line by line, "inplace" of the actual INCLUDE statement - that's it.
Bookmarks