HPlogo

HP Assembler Reference Manual: HP 9000 Computers

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

HP Part Number: 92432-90012

Edition: 9th Edition

Published: June 1998


Table of Contents

Preface
Printing History
Audience
Related Documentation
Typographical Conventions
In This Manual
Summary of Technical Changes for HP-UX 11.0
1 Introduction to PA-RISC Assembly Language
Assembler Features
Summary of Changes for PA-RISC 2.0
Summary of Changes for PA-RISC 2.0W (Wide Mode, 64-bit)
2 Program Structure
Symbols and Constants
Registers and Register Mnemonics
Expressions
Parenthesized Subexpressions
Operands and Completers
Macro Processing
Defining New Instructions With Macros
3 HP-UX Architecture Conventions
Spaces
Subspaces
Attributes
Directives
Sections in 64-bit Mode
Location Counters
Compiler Conventions
Shared Libraries
Assembly Listing
4 Assembler Directives and Pseudo-Operations
Introduction
.ALIGN Directive
Syntax
Parameters
Example
.ALLOW Directive
Syntax
Parameters
Discussion
Example
.BLOCK and .BLOCKZ Pseudo-Operations
Syntax
Parameters
Discussion
Example
.BYTE Pseudo-Operation
Syntax
Parameters
Discussion
Example
.CALL Directive
Syntax
Parameters
Example
.CALLINFO Directive
Syntax
Parameters
Discussion
Example
.COMM Directive
Syntax
Parameters
Discussion
Example
.COPYRIGHT Directive
Syntax
Parameters
Discussion
Example
.DOUBLE Pseudo-Operation
Syntax
Parameters
Example
.DWORD Pseudo-Operation
Syntax
Parameters
Discussion
Example
.END Directive
Syntax
Discussion
Example
.ENDM Directive
Syntax
Example
.ENTER and .LEAVE Pseudo-Operations
Syntax
Discussion
Example
.ENTRY and .EXIT Directives
Syntax
Discussion
Example
.EQU Directive
Syntax
Parameters
Example
.EXPORT Directive
Syntax
Parameters
Discussion
Example
.FLOAT Pseudo-Operation
Syntax
Parameters
Example
.HALF Pseudo-Operation
Syntax
Parameters
Discussion
Example
.IMPORT Directive
Syntax
Parameters
Discussion
Example
.LABEL Directive
Syntax
Parameters
Example
.LEVEL Directive
Syntax
Parameters
Discussion
.LISTOFF and .LISTON Directives
Syntax
Example
.LOCCT Directive
Syntax
Parameters
Example
.MACRO Directive
Syntax
Parameters
Discussion
Examples
.ORIGIN Directive
Syntax
Parameters
Discussion
Example
.PROC and .PROCEND Directives
Syntax
Discussion
Example
.REG Directive
Syntax
Parameters
Example
.SHLIB_VERSION Directive
Syntax
Parameters
Example
.SPACE Directive
Syntax
Parameters
Discussion
Example
.SPNUM Pseudo-Operation
Syntax
Parameters
Example
.STRING and .STRINGZ Pseudo-Operations
Syntax
Parameters
Discussion
Examples
.SUBSPA Directive
Syntax
Parameters
Discussion
Example
.VERSION Directive
Syntax
Parameters
Discussion
Example
.WORD Pseudo-Operation
Syntax
Parameters
Discussion
Example
Programming Aids
5 Pseudo-Instruction Set
6 Assembling Your Program
Invoking the Assembler
Using the as Command
Syntax
Parameters
Using the cc Command
Passing Arguments to the Assembler
cpp Preprocessor
7 Programming Examples
1. Binary Search for Highest Bit Position
2. Copying a String
3. Dividing a Double-Word Dividend
4. Demonstrating the Procedure Calling Convention
C Program Listing
Assembly Program Listing
5. Output of the cc -S Command
C Program Listing
Assembly Program Listing From the C Compiler
8 Diagnostic Messages
Warning Messages
Error Messages
Panic Messages
User Warning Messages
Limit Error Messages
Branching Error Messages
Index

List of Examples

3-1 Global Symbol Usage
4-1 Stack Frames
© 1998 Hewlett-Packard Development Company, L.P.