|
|
HP Assembler Reference Manual: HP 9000 Computers > Chapter 4 Assembler Directives and Pseudo-Operations.BLOCK and .BLOCKZ Pseudo-Operations |
|
The .BLOCK and .BLOCKZ pseudo-operations reserve a block of storage. Title not available (Parameters )
The .BLOCK pseudo-operation reserves a data storage area but does not perform any initialization. The .BLOCKZ pseudo-operation reserves a block of storage and initializes it to zero. When you label a.BLOCK pseudo-operation, the label refers to the first byte of the storage area. For large blocks, it is usually better to use the .COMM directive to allocate uninitialized space. Since .COMM storage is allocated at run time, it doesn't increase the size of the object file.
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.
The second example reserves 32 bytes of memory in the $DATA$ subspace followed by one word intended as an end marker.
|
|