English
Language : 

45111 Datasheet, PDF (55/184 Pages) List of Unclassifed Manufacturers – 14-DAY MONEY BACK GUARANTEE
7 The SASM Assembler
With
DriverOn
=1
the Parallax Assembler reports an “Expected a label” error.
7.3.14 The INCLUDE Directive
The INCLUDE directive allows the inclusion of one or more source code files in the main file that
contains the include directive. Whenever the assembler processes an include directive, it replaces it with
the contents of the file specified. The syntax of the include directive is:
INCLUDE
“<File Path>”
<File Path> must either specify a relative or the full file path, including the file name extension. For
example, when the include file is located together with the main file in one folder, the directive could be
INCLUDE
“SX28Defs.src”
when the include file is located in a sub-folder of the folder where the main file is located, the directive
could be
INCLUDE
“INCS\SX28Defs.src”
and if the include file is located elsewhere, the directive could be
INCLUDE
“D:\SXDev\INCS\ SX28Defs.src”
Please note that the path specification must be specified within quotes, and that the total length of the
path specification may not exceed 63 characters.
It is possible to have more than one INCLUDE directive in a program and it is also possible that
INCLUDE directives are used in include files, i.e. nesting of include files is allowed at a maximum level
of 10.
When nesting include files, take care that files don’t include themselves recursively.
Note: Any include files that are open in the editor are not automatically saved when you assemble the
main file. Therefore perform a Save operation on any include files that you have changed before
selecting the main file and do an Assemble, Run or Debug operation.
SX-Key/Blitz Development System Manual 2.0 • Parallax, Inc. • Page 55