Ax51 User's Guide

INCDIR Assembler Directive

Abbreviation

ID

Arguments

One or more path names enclosed in parentheses.

Default

None.

µVision

Options — A51 — Include Paths.

Description

The INCDIR directive specifies the location of include files specified with the INCLUDE directive. Multiple path specifications must be separated by semicolon (';') characters. A maximum of 512 paths may be specified.

When the assembler processes an INCLUDE directive, the current path is searched for the include file first. If the file is not found, the assembler then searches the default assembler include folder (\KEIL\C51\A51). 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.

See Also

INCLUDE

Example
A51 SAMPLE.ASM INCDIR(C:\PRJ\MYINC;C:\PRJ\INC)

$INCDIR (C:\PRJ\INC)