Chapter 7 Type of Source Statements
122 Assembler Control Statements
7.4 Assembler 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
mov 0x22, D0 ;block to assemble if condition is fulfilled
#else mov 0x11, D0 ;block to assemble if unfulfilled
#endif .
.
.