Unit 4 The Art of Assembly Language Programming
Unit 4 The Art of Assembly Language Programming
language Programming
Assembler directives :
1. These are the statements that direct the assembler to do
something.
2. They indicate how an operand is treated by the assembler and
how assembler handles the program.
3. They also direct the assembler how program and data should be
arranged in the memory.
4. They do not generate any machine code.
Directives are classified into following categories.
1) Data definition and storage allocation directives
2) Program organization directives
3) Value returning attribute directives
4) Data control directives
5) Procedure directives
6) Macro directives
Data definition and storage allocation directives :
Data definition directives are used to define the program variable
and allocate a specified amount of memory to them. They are as
follows;
DB(Define data Byte) - DB directive is used to declare a byte type.
Variable size of variable is 1 byte.
General form : Name_Of_Varible DB Initialiation_value(,s)