|
NGASM 8086/8088 Assembler v1.4 Beta 2 The INCLUDE Directive is for including, in the main source code file, source code contained in any number of files, for example, common routines contained in separate files. Syntax INCLUDE Drive:\path\filenameExample: INCLUDE routines.nga routines.nga is provided with NGASM 8086/8088 Assembler v1.4 Beta 2. It contains a number of routines used in the 7000 lines MANUAL.DOC (free) to expose the result of execution of most of the Instructions in the 8086/8088 Instruction Set.The INCLUDEd file is assembled before any instruction below the INCLUDE Directive is reached. This Directive helps the programmer insert another file in the main source code file. For example, startup code, say, in STARTUP.ASM file can be inserted at the top by placing an INCLUDE statement at the top of the main source code file. If the programmer wants to throw away the startup code after it has done its job to free more memory for other use, he can place the INCLUDE statement at the end of all other code as the last line and write a JMP instruction at the top of the main source code file to transfer control to the startup code when program starts to run. Example INCLUDE Directive specifying source code file with path: INCLUDE C:\NGASM\routines.ngaOne INCLUDE Directive can specify only one source code file. File extension must be specified. The source code file's path can be specified along with its name. This helps in easily assembling a program with source code files in different directories. Further, this saves the typing of the filename with full path on the command line each time a program is assembled. The INCLUDE Directive must end in a single line. All symbols in the main source code file and in all INCLUDEd files are public. An INCLUDEd file can INCLUDE other files which can INCLUDE other files. There is no limit on the number of files INCLUDEd and the depth level. But any source code file can be INCLUDEd only once for the whole project. |
|