View Single Post
Old 02 April 2017, 05:34   #9
idrougge
Registered User
 
Join Date: Sep 2007
Location: Stockholm
Posts: 4,342
From the manual, page 10.2.16:
Quote:
INCLUDE
instruction: specify a file for inclusion when testing a program
Include "File_To_Include.AMOS"
The INCLUDE command must occupy a line on its own, otherwise the specified file will not be detected , and so it
will not be included. The effect of INCLUDE on a file is as follows:
Immediately before a program is tested, AMOS Professional scans the beginning of each program line for an INCLUDE instruction.
If an INCLUDE is encountered, AMOS Professional opens the specified file, reads its length and checks its validity.
This process takes place for each INCLUDE that is found, in order.
A memory buffer is reserved for the total length of the re-created program.
AMOS Professional now copies sections of the source program, without the Includes, and loads the files from disc.
All files are now closed, and with the memory buffer holding the re-created program, the testing process begins as normal.
You will need enough memory to hold the original buffer space and the included files at the same time for this process to operate, but if your program is large enough to slow down the Editor it is obvious that you have access to a reasonable amount of memory.
Please note that included files are only supported in the original source, and an INCLUDE in an included file will generate an error when the program is run. The re-created buffer is erased as soon as the program is left, so the specified files must be loaded every time the program is tested. If programs are included which have memory banks, these banks will be left out.
idrougge is offline  
 
Page generated in 0.04421 seconds with 11 queries