Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP Assembler Reference Manual: HP 9000 Computers > Chapter 4 Assembler Directives and Pseudo-Operations

.HALF Pseudo-Operation

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

The .HALF pseudo-operation reserves storage and initializes it to the given value.

Syntax

.HALF [init_value [, init_value]...]

Parameters

init_value

Either a decimal, octal, or hexadecimal number or a sequence of ASCII characters, surrounded by quotation marks. If you omit the initializing value, the Assembler initializes the area to zero.

Discussion

The .HALF pseudo-operation requests 16 bits of storage. If the location counter is not properly aligned on a boundary for a data item of that size, the Assembler advances the location counter to the next multiple of that item's size before reserving the area.

When you label the pseudo-operation, the label refers to the first byte of the storage area. Operands separated by commas initialize successive units of storage.

Example

This example allocates two half-words, initializing them to 50 and 100. The label B refers to the first half-word allocated.

B   .HALF   50,100
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1998 Hewlett-Packard Development Company, L.P.