19 include — include text from another file, Include — include text from another file, Calling macros – Motorola HC12 User Manual

Page 185

Advertising
background image

Assembler Directives

INCLUDE — Include Text from Another File

MCUez HC12 Assembler

User’s Manual

MOTOROLA

Assembler Directives

185

8.19 INCLUDE — Include Text from Another File

Syntax:

INCLUDE

<filename>

Description:

This directive causes the included file to be inserted in the
source input stream. The <file specification> is not case
sensitive and must be enclosed in quotation marks.

The assembler attempts to open <filename> relative to the
current working directory. If the file is not found, then it is
searched for in each path specified in the environment variable
GENPATH.

Example:

INCLUDE "..\LIBRARY\macros.inc"

Advertising