![](/images/backgrounds/286207/hp-hp-ux-developer-tools-reference-guide-66968780x1.png)
Assembler Directives and
.ENDM Directive
.ENDM Directive
The .ENDM directive marks the end of a macro definition. The macro definition is entered into the macro table and the remaining source lines are read in and assembled. An .ENDM directive must always accompany a .MACRO directive.
Syntax
.ENDM
Example
This example defines the macro QUADL; it aligns the data specified in the macro parameters on quad word boundaries. The .ENDM directive delimits the end of the definition of QUADL.
QUADL .MACRO WD1,WD2,WD3,WD4
.ALIGN 16
.WORD WD1
.ALIGN 16
.WORD WD2
.ALIGN 16
.WORD WD3
.ALIGN 16
.WORD WD4
.ENDM
80 | Chapter 4 |