Panasonic MN1030 Manual Do Utilizador

Página de 340
Chapter 10   Writing Assembler Control Statements
File Inclusion  185
Usage example
The following example illustrates the use of an include file.
The file inc.h consists of the following statement.
The file to be assembled consists of the following statements.
The above file is assembled with the file inc.h included. For this reason, at points after the #include 
statement, the operand data is interpreted as the numerical value 0x12.
data
equ
0x12
#include
“inc.h”
_TEXT
section
CODE, PUBLIC, 1
main
mov
data, A0
mov
0x34, D0
mov
D0, (A0)
end