![](/images/backgrounds/286207/hp-hp-ux-developer-tools-reference-guide-66968761x1.png)
Assembler Directives and
.BLOCK and .BLOCKZ
Example
The first example requests the Assembler to reserve 64 bytes of memory in the $CODE$ subspace. This area is then followed by a “Load Word” and “Store Word” instruction.
.SPACE $TEXT$
.SUBSPA $CODE$
.BLOCK 64
swap LDW 0(%r2)%r1 STW %r1,4(%r2)
.END
The second example reserves 32 bytes of memory in the $DATA$ subspace followed by one word intended as an end marker.
.DATA
word0 .BLOCK 0X20
word8 .WORD 0XFFFF
Chapter 4 | 61 |