NOTE

Assembler Directives and Pseudo-Operations

.LOCCT Directive

.LOCCT Directive

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.

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

 

ldval1

.LOCCT

0

LDIL

L'val1,%r19

 

 

LDO

R'val1(%r19),%r19

 

.LOCCT

1

val1

.WORD

57005

ldval2

.LOCCT

0

LDIL

L'val2,%r20

 

 

LDO

R'val2(%r20),%r20

 

.LOCCT

1

val2

.WORD

61453

Chapter 4

97