Assembler Directives and Pseudo-Operations

.BLOCK and .BLOCKZ Pseudo-Operations

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