Reference Guide

108 Chapter 4
Assembler Directives and Pseudo-Operations
.SPNUM Pseudo-Operation
.SPNUM Pseudo-Operation
The .SPNUM pseudo-operation reserves a word of storage and initializes
it with the space number of the space named by the operand. Only one
operand is allowed and any label present is offset at the first byte of the
storage just initialized.
Syntax
.SPNUM name
Parameters
name Specifies the name of a space whose space number is
used to initialize a word of storage.
NOTE Space numbers are ignored by the linker.
Example
In this example, the space number of $PRIVATE$, 1, is stored as the
address of the symbol LOG by the .SPNUM pseudo-operation.
.SPACE $PRIVATE$,SPNUM=1 SORT=16
.SUBSPA $DATA$,QUAD=1, ALIGN=8,ACCESS=0x1f SORT=24
data_ref
.WORD 0xFFFF
LOG .SPNUM $PRIVATE$