HP UX Developer Tools manual Endm Directive

Models: UX Developer Tools

1 202
Download 202 pages 52.59 Kb
Page 80
Image 80

Assembler Directives and Pseudo-Operations

.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

Page 80
Image 80
HP UX Developer Tools manual Endm Directive