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

.LABEL Directive

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

The .LABEL directive permits a label definition to appear within a sequence of instructions that occur on a single line.

Syntax

.LABEL label_id

Parameters

label_id

Names the label identifier.

NOTE: The .LABEL directive is especially useful when using the M4 macro processor or the C preprocessor (cpp). You would normally use this directive in a DEFINE macro that includes multiple instructions.

Example

This example defines a cpp macro named Loop.

#define Loop(xx) LDO xx(%r0),%r1 ! .LABEL Loop ! ADDI,=-1,%r1,%r1 \
! BL Loop,%r0 ! NOP ! LDI 1,%ret0 ; macro
.CODE
step_ten
.PROC
.CALLINFO
.ENTER
Loop(10)
.LEAVE
.PROCEND
.EXPORT step_ten,ENTRY
© 1998 Hewlett-Packard Development Company, L.P.