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

Programming Aids

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

The Assembler provides a series of standard space and subspace definitions that you can use to simplify the writing of an assembly program. These definitions are duplicated in the system file /usr/lib/pcc_prefix.s. Because this file is relatively large and may change with new releases of the Assembler, you can view the most recent version of the file on your terminal screen by typing the command:

more /usr/lib/pcc_prefix.s

Table 4-3 “Predefined Subspace Directives ” lists the predefined directives for establishing standard spaces and subspaces.

Table 4-3 Predefined Subspace Directives

Directive

Space Name

Default Parameters

.BSS

.space $PRIVATE$,'' .subspa $BSS$,
PRIVATE,SPNUM=1,SORT=16 QUAD=1,ALIGN=8,ACCESS=0x1f,  SORT=82,ZERO

.CODE

.space $TEXT$,'' .subspa $CODE$,
SPNUM=0,SORT=8 QUAD=0,ALIGN=8,ACCESS=0x2c,SORT=24

.DATA

.space $PRIVATE$,'' .subspa $DATA$,
PRIVATE,SPNUM=1,SORT=16 QUAD=1,ALIGN=8,ACCESS=0x1f,SORT=24

.FIRST

.space $TEXT$,'' .subspa $FIRST$,
SPNUM=0,SORT=8 QUAD=0,ALIGN=2048,ACCESS=0x2c,  SORT=4,FIRST

.GATE

.space $TEXT$,'' .subspa $GATE$,
SPNUM=0,SORT=8
QUAD=0,ALIGN=8,ACCESS=0x4c, SORT=84,CODE_ONLY

.GLOBAL

.space $PRIVATE$,'' .subspa $GLOBAL$, .IMPORT $global$
PRIVATE,SPNUM=1,SORT=16 QUAD=1,ALIGN=8,ACCESS=0x1f,SORT=40

.GNTT

.space $DEBUG$,'' .subspa $GNTT$,
SPNUM=2,PRIVATE,UNLOADABLE,SORT=80 ALIGN=4,ACCESS=0,UNLOADABLE

.HEADER

.space $DEBUG$,'' .subspa $HEADER$,
SPNUM=2,PRIVATE,UNLOADABLE,SORT=80 ALIGN=4,ACCESS=0,UNLOADABLE,FIRST

.HEAP

.space $PRIVATE$,'' .subspa $HEAP$,
PRIVATE,SPNUM=1,SORT=16 QUAD=1,ALIGN=8,ACCESS=0x1f,SORT=82

.LIT

.space $TEXT$,'' .subspa $LIT$,
SPNUM=0,SORT=8 QUAD=0,ALIGN=8,ACCESS=0x2c,SORT=16

.LNTT

.space $DEBUG$,'' .subspa $LNTT$,
SPNUM=2,PRIVATE,UNLOADABLE,SORT=80 ALIGN=4,ACCESS=0,UNLOADABLE

.MILLICODE

.space $TEXT$,'' .subspa $MILLICODE$,
SPNUM=0,SORT=8
QUAD=0,ALIGN=8,ACCESS=0x2c,SORT=8

.PCB

.space $PRIVATE$,'' .subspa $PCB$,
PRIVATE,SPNUM=1,SORT=16 QUAD=1,ALIGN=8,ACCESS=0x10,SORT=82

.REAL

.space $TEXT$,'' .subspa $REAL$,
SPNUM=0,SORT=8
QUAD=0,ALIGN=8,ACCESS=0x2c, SORT=4,FIRST,LOCK

.RECOVER

.space $TEXT$,'' .subspa $RECOVER$,
SPNUM=0,SORT=8 QUAD=0,ALIGN=4,ACCESS=0x2c,SORT=80

.RESERVED

.space $TEXT$,'' .subspa $RESERVED$,
SPNUM=0,SORT=8 QUAD=0,ALIGN=8,ACCESS=0x73,SORT=82

.SHORTDATA

.space $PRIVATE$,'' .subspa $SHORTDATA$,
PRIVATE,SPNUM=1,SORT=16 QUAD=1,ALIGN=8,ACCESS=0x1f,SORT=16

.SLT

.space $DEBUG$,'' .subspa $SLT$,
SPNUM=2,PRIVATE,UNLOADABLE,SORT=80 ALIGN=4,ACCESS=0,UNLOADABLE

.STACK

.space $PRIVATE$,'' .subspa $STACK$,
PRIVATE,SPNUM=1,SORT=16 QUAD=1,ALIGN=8,ACCESS=0x1f,SORT=82

.UNWIND

.space $TEXT$,'' .subspa $UNWIND$,
SPNUM=0,SORT=8 QUAD=0,ALIGN=4,ACCESS=0x2c,SORT=64

.VT

.space $DEBUG$,'' .subspa $VT$,
SPNUM=2,PRIVATE,UNLOADABLE,SORT=80 ALIGN=4,ACCESS=0,UNLOADABLE

 

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