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

.LOCCT Directive

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

The .LOCCT directive specifies where subsequent code should occur in one of the four location counters of the current subspace.

Syntax

.LOCCT [loc_number]

Parameters

loc_number

A location-counter number of the current subspace. The permissible values are 0, 1, 2, and 3. The default is zero.

NOTE: The .LOCCT directive is not permitted within a procedure and cannot be used to produce unwindable code.

Example

This example uses two location counters to separate code from data. In the assembled code, everything under location counter 0 comes first, followed by everything under location counter 1, and so on.

        .CODE
.LOCCT 0
ldval1
LDIL L'val1,%r19
LDO R'val1(%r19),%r19
.LOCCT 1
val1 .WORD 57005
.LOCCT 0
ldval2
LDIL L'val2,%r20
LDO R'val2(%r20),%r20
.LOCCT 1
val2 .WORD 61453
© 1998 Hewlett-Packard Development Company, L.P.