The INCLUDE directive specifies an include file whose
contents are inserted starting on the next line. Include files may be
nested up to nine levels.
Note
This directive may not be specified on the command line. It
must be specified in a source file.
The INCLUDE directive may not be combined with other
directives on the same line. Directives following INCLUDE on
the same line are ignored.
The INCLUDE directive is typically used to include register
definitions or declarations for external routines, variables, or
macros. Files containing assembly code may also be included.
When the assembler processes an include file, the current path is
searched for the file first. If the file is not found, the assembler
then searches the default assembler include folder. If the file is still
not found, the assembler finally searches the paths specified by the
INCDIR directive. The order in which paths are searched is the
order in which the paths are specified with the INCDIR
directive.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.