beautypg.com

1 include instruction (#include) – Epson S5U1C62000A User Manual

Page 76

background image

64

EPSON

S5U1C62000A MANUAL

(S1C60/62 FAMILY ASSEMBLER PACKAGE)

CHAPTER 5: ASSEMBLER

5.7.1 Include Instruction (#include)

The include instruction inserts the contents of a file in any location of a source file. It is useful when the
same source is shared in common among several source files.

Instruction format

#include ""

• A drive name or path name can as well be specified as the file name.
• One or more spaces are necessary between the instruction and the "".
• Character case is ignored for both #include itself and "".

Sample descriptions:

#include

"sample.def"

#include

"c:\E0C62\header\common.h"

Expansion rule

The specified file is inserted in the location where #include was described.

Precautions

• Only files created in text file format can be inserted.

• The #include instruction can be used in the including files. However, nesting is limited up to 10 levels.

If this limit is surpassed, an error will result.