#INCLUDE - Include Additional Source File

MPASM Assembler

#INCLUDE - Include Additional Source File

Syntax

#include <<include_file>>

#include "<include_file>"

Description

The specified file is read in as source code. The effect is the same as if the entire text of the included file were inserted into the file at the location of the include statement. Upon end-of-file, source code assembly will resume from the original source file. Up to 5 levels of nesting are permitted. Up to 255 include files are allowed.

<include_file> may be enclosed in quotes or angle brackets. If a fully qualified path is specified, only that path will be searched. Otherwise, the search order is: current working directory, source file directory, MPASM assembler executable directory.

Example

#include "c:\sys\sysdefs.inc" ; system defs

#include <regs.h> ; register defs

See Also

#DEFINE #UNDEFINE


Microchip Technology Inc.
Microchip's Web Site
Voice: (480) 792-7200
Fax: (480) 899-9210
Microchip's E-mail Address
PreviousNext