InterviewSolution
| 1. |
What Is The Equ Directive? |
|
Answer» The EQU DIRECTIVE is used for DEFINING CONSTANTS. The syntax of the EQU directive is as follows − CONSTANT_NAME EQU expression For example: TOTAL_STUDENTS equ 50 You can then use this CONSTANT value in your code, like − mov ecx, TOTAL_STUDENTS The operand of an EQU statement can be an expression − LENGTH equ 20 Above code segment would define AREA as 200. The EQU directive is used for defining constants. The syntax of the EQU directive is as follows − CONSTANT_NAME EQU expression For example: TOTAL_STUDENTS equ 50 You can then use this constant value in your code, like − mov ecx, TOTAL_STUDENTS The operand of an EQU statement can be an expression − LENGTH equ 20 Above code segment would define AREA as 200. |
|