Chapter 7 Type of Source Statements

7.4Assembler Control Statements

Assembler control statements are source statements that control how the assembler processes.

The assembler provides include directives that include files and conditional assembly directives that specify conditions for changing which instructions are assembled.

The example below shows assembler control statements.

#include

“FILE1.ASM

;include a file

#define

MODE

 

;define an identifier

 

.

 

 

 

.

 

 

 

.

 

 

#ifdef

MODE

 

;begin conditional assembly

#else

mov

0x22, D0

;block to assemble if condition is fulfilled

mov

0x11, D0

;block to assemble if unfulfilled

#endif

 

 

 

.

.

.

122 Assembler Control Statements

Page 134
Image 134
Panasonic MN1030 user manual Assembler Control Statements, #else Mov 0x22, D0, Mov 0x11, D0