HPlogo HP Assembler Reference Manual: HP 9000 Computers > Chapter 4 Assembler Directives and Pseudo-Operations

.ENDM Directive

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

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
© 1998 Hewlett-Packard Development Company, L.P.