Chapter 10 Writing Assembler Control Statements

Usage example

The following example illustrates the use of an include file.

The file inc.h consists of the following statement.

data equ 0x12

The file to be assembled consists of the following statements.

#include

“inc.h”

 

_TEXT

section

CODE, PUBLIC, 1

main

mov

data, A0

 

 

mov

0x34, D0

 

mov

D0, (A0)

 

end

 

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.

File Inclusion 185

Page 197
Image 197
Panasonic MN1030 user manual Data equ, File to be assembled consists of the following statements, #include Inc.h