File Control Directives
Syntax
INCLUDE file-name
or
INCLUDE ²file-name²
·
Description
This directive inserts source codes from the source file given by file-name into the current
source file during assembly. Cross Assembler supports at most 7 nesting levels.
·
Example
INCLUDE macro.def
In this example, the Cross Assembler inserts the source codes from the file macro.def into the
current source file.
Syntax
PAGE size
·
Description
This directive specifies the number of the lines in a page of the program listing file. The page
size must be within the range from 10 to 255, the default page size is 60.
·
Example
PAGE 57
This example sets the maximum page size of the listing file to 57 lines.
Syntax
.LIST
.NOLIST
· Description
The directives .LIST and .NOLIST decide whether or not the source program lines are to be
copied to the program listing file. .NOLIST suppresses copying of subsequent source lines to
the program listing file. .LIST restores the copying of subsequent source lines to the program
listing file. The default is .LIST.
· Example
.NOLIST
mov a, 1
mov b1, a
.LIST
In this example, the two instructions in the block enclosed by .NOLIST and .LIST are sup
-
pressed from copying to the source listing file.
Syntax
.LISTMACRO
.NOLISTMACRO
·
Description
The directive .LISTMACRO causes the Cross Assembler to list all the source statements, in
-
cluding comments, in a macro. The directive .NOLISTMACRO suppresses the listing of all macro
expansions. The default is .NOLISTMACRO.
114
I/O Type MCU