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

.ALIGN Directive

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

The .ALIGN directive advances the current location counter to the next specified "boundary."

Syntax

.ALIGN [boundary]

Parameters

boundary

An integer value for the byte boundary to which you want to advance the location counter. The Assembler advances the location counter to that boundary. Permissible values must be a power of 2 and can range from one to 4096. The default value is 8 (double word aligned).

Example

This sample program adds a 21 bit field to the data pointer. Then a branch is taken to the label "page" that has been page-aligned.

             .CODE
ADDIL L'$WORDMARK$-$global$,%dp
B page
NOP
.ALIGN 4096
page
ADDI 1,%r1,%r1
.DATA
$WORDMARK$
.WORD 0x0FFF
.IMPORT $global$,DATA
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1998 Hewlett-Packard Development Company, L.P.