HP UX Developer Tools manual 198, HP C/HP-UX,49

Page 198

Index

F

feature implementation-specific,58,

93

field selectors, 30, 51 shared libraries, 33

fields comments, 19, 20 label, 19 opcode, 19 operands, 19, 20

fixed argument list, 68 floating-point

registers, 23 floating-point value

initializing a double-word to, 77

initializing a single-word to, 88 following instruction

delay slot, 119 frame marker, 68

G

general registers, 23, 35, 48 generating

entry/exit code sequences, 67 stack unwind descriptors, 67

global symbol, 49

H

hard_reg.h header file, 127 high-level language procedure,

47

HP C/HP-UX,49

HP FORTRAN 77/HP-UX,49 HP Pascal/HP-UX,49

procedures, 48

I

identifier, assigning an expression value to, 84

illegal symbols, 21 implementation-specific

features, 58, 93 initializing

block of storage, 60, 62, 89 double-word to floating-point

value, 77 reserved storage, 78, 115 reserved storage to ASCII

values, 109 single-word to floating-point

value, 88 inserting

copyright notice, 75 version string, 114

instruction set, 119 instructions

creating with macros, 37 delay slot, 119 pseudo-instruction,120

integer constants, 21 invoking the Assembler, 123

L

label definition, permitting, 92 label field, 19

.EQU, 19

.MACRO, 19

.REG, 19

pound sign (#), 19 ld(1), 42

LDI pseudo-instruction,120 legal combination

relocatable terms, 30 legal symbols, 21

levels, versions of PA-RISC,58, 93

limit messages, 183 limits

memory, 183 linker, 15

executable program file, 15

ld(1), 42 program file, 15 relocatable object file, 15 See also Executable and

Linking Format subspaces, 42

listing assembly, 51

location counters, 46, 62, 97 advanced, 101

local to Assembler, 46

next alignment boundary, 57 long addressing, 40

M

macros, 37

.ENDM directive, 80

.MACRO directive, 98 completers, 37 creating instructions, 37 declaring, 98

defining new instructions, 37 expansion, 95

opcodes, 37 operands, 37 processing, 16, 37 subopcodes, 37

making

a new space, 106

entry/exit code sequences, 67 stack unwind descriptors, 67

making symbols available to other modules, 85, 90

marking

beginning of macro, 98 beginning of procedure, 102 end of macro, 80

end of procedure, 102 next branch statement, 63 procedure entry points, 81, 83 procedure exit points, 81, 83

memory

198

Index

Image 198
Contents HP 9000 Computers 92432-90012 JuneLegal Notices Restricted Rights LegendHanover Street Palo Alto, California Contents Assembler Directives and Pseudo-Operations Contents Contents Contents Contents Pseudo-Instruction Set Assembling Your Program Diagnostic Messages Programming ExamplesIndex Preface Printing HistoryEdition Date Software Version Audience Related DocumentationTypographical Conventions This ManualSummary of Technical Changes for HP-UX Assembly Language Assembler FeaturesAssembler Features Summary of Changes for PA-RISC Summary of Changes for PA-RISCSummary of Changes for PA-RISC 2.0W Wide Mode, 64-bit ChapterSummary of Changes for PA-RISC 2.0W Wide Mode, 64-bit Program Structure Program Structure Label Opcode Operands CommentsSymbols and Constants Symbols and ConstantsInteger Constants Signed Unsigned Registers and Register Mnemonics Registers and Register MnemonicsRegisters by using an L or R suffix General Registers Single-Precision Floating-Point Registers Double-Precision Floating-Point Registers Space RegistersControl Registers Synonyms Register Procedure Calling Conventions Register Synonyms DescriptionStandard Arithmetic Operators ExpressionsExpressions Operator OperationLegal Combinations For Relocatable Terms Operation Result Available Field Selectors Meaning Field Meaning Selector Multiple of 2048 allows a three-instruction sequence Parenthesized Subexpressions Operands and Completers Operands and CompletersAddi Macro Processing Defining New Instructions With MacrosMacro Processing Contains general register 19, or binary 10011. These HP-UX Architecture Conventions SpacesSpaces Memory Layout on HP-UX Sr4 Sr5 Sr6 Subspaces AttributesSubspaces Directives Standard Subspaces and Sort KeysSpace Subspace Sort Key Use Sections in 64-bit Mode Sections in 64-bit Mode$INIT$ Location Counters Location CountersCompiler Conventions Compiler ConventionsCompiler Conventions Global Symbol Usage Mfctl Assembly Listing Shared LibrariesShared Libraries Assembly Listing Introduction Assembler DirectivesDirective Function Requests common storage for a specified number Bytes Pseudo-Operations Directive Function Reserves 16 bits a half word of storage Parameters Align DirectiveSyntax ExampleAllow Directive DiscussionAllow Directive To the .LEVEL specified for the file Block and .BLOCKZ Pseudo-Operations Block and .BLOCKZ Pseudo-OperationsSpace $TEXT$ Subspa $CODE$ Block Byte Pseudo-Operation Byte Pseudo-OperationByte initvalue , initvalue Call Directive Call DirectiveCall argumentdescription argumentdescription first word in the argument list Form of argument-description is Arg=location Where arg canReturn value for a procedure Second word in the argument listLIT Align Word Procend Export Callinfo Directive Callinfo DirectiveCallinfo parameter , parameter Register ENTRYSR= Unwound It restores the RP value when it encounters a .LEAVE Callinfo Directive Stack Frames Re-enter code subspace Label .COMM numbytes Comm DirectiveComm Directive Label Labels the location of the reserved storageCopyright Directive Copyright DirectiveCompany-name Proc Callinfo Enter Double Pseudo-Operation Integer .fraction E powerFraction E power Double Pseudo-OperationDword Pseudo-Operation Dword Pseudo-OperationDword initvalue , initvalue END Directive END DirectiveEndm Directive Endm DirectiveEnter and .LEAVE Pseudo-Operations Enter and .LEAVE Pseudo-OperationsSpace $TEXT$ Entry and .EXIT Directives Entry and .EXIT DirectivesEQU Directive Symbolicname .EQU valueEQU Directive ValueExport Directive Export DirectiveArgument Export proc,ENTRY,ARGW0=GR Float Pseudo-Operation Float Pseudo-OperationHalf Pseudo-Operation Half Pseudo-OperationHalf initvalue , initvalue Import Directive Import DirectiveNOP END Label labelid Label DirectiveLabel Directive Labelid Names the label identifierLevel Directive Level DirectiveLevel Directive Listoff and .LISTON Directives Listoff and .LISTON DirectivesListon Code Space $TEXT$ SPNUM=0,SORT=0 Subspa $CODE$ Locct Directive Locct DirectiveMacro Directive Macro DirectiveLabel .MACRO formalparameter,formalparameter Examples 100 Origin Directive Origin DirectiveChapter 101 Proc and .PROCEND Directives Proc and .PROCEND Directives102 Chapter 103 Label .REG typedregister REG DirectiveREG Directive Label User-defined register nameShlibversion Directive Shlibversion DirectiveChapter 105 Space Directive Space Directive106 Chapter 107 Spnum Pseudo-Operation Spnum Pseudo-Operation108 String and .STRINGZ Pseudo-Operations String and .STRINGZ Pseudo-OperationsChapter 109 110 Name An identifier that names the current subspace Subspa DirectiveSubspa Directive Chapter 111112 Chapter 113 Version Directive Version Directive114 Word initvalue , initvalue Word Pseudo-OperationWord Pseudo-Operation Chapter 115Programming Aids Directive Space Name Default ParametersProgramming Aids Predefined Subspace DirectivesShortdata Chapter 117Programming Aids 118 Pseudo-Instruction Set 119120 Compare and Branch Conditions Comb and Comib Cond DescriptionChapter 121 Add and Branch Conditions Addb and Addib Description 122Invoking the Assembler 123Assemble code for the architecture Using the as CommandUsing the as Command 124filename LevelChapter 125 Online User Guide WnumberTables, see HP-UX Linker and Libraries 126Passing Arguments to the Assembler Using the cc CommandUsing the cc Command Wa, ,as-argument as-argumentCpp Preprocessor 128Programming Examples 129Binary Search for Highest Bit Position Binary Search for Highest Bit Position130 Chapter 131 Copying a String Copying a String132 Chapter 133 Dividing a Double-Word Dividend Dividing a Double-Word Dividend134 Programming Examples Chapter 135Program Listing Demonstrating the Procedure Calling ConventionDemonstrating the Procedure Calling Convention 136Assembly Program Listing Chapter 137Output of the cc -S Command Output of the cc -S CommandAssembly Program Listing From the C Compiler 138Chapter 139 Output of the cc -S Command 140 141 Option operand 142Chapter 143 Reserve 144Wrong register type used Use a general registerChapter 145 Use a space register Use a control register146 Chapter 147 148 Chapter 149 150 Chapter 151 Used to invoke the assembler 152Chapter 153 Error Messages Error Messages154 Chapter 155 156 Chapter 157 158 1029 10271028 10301033 10311032 10341037 10351036 1038162 Chapter 163 1056 10541055 1057Chapter 165 166 Chapter 167 168 1081 Format keyword=value1080 1082170 1090 10881089 Chapter 1711095 10911094 10961099 10971098 11001103 11011102 11041105 Chapter 175Panic Messages Panic Messages176 2007 20052006 2008User Warning Messages User Warning Messages178 7005 70037004 7006180 Chapter 181 182 7200 Limit Error MessagesLimit Error Messages 72017204 72027203 184Diagnostic Messages Chapter 185186 Branching Error Messages Branching Error MessagesChapter 187 188 Chapter 189 190 Chapter 191 192 7834 78277828 7835Expr 78367837 194Index Index 195196 NumericsIndex 197 Copyright198 HP C/HP-UX,49Index 199 Mfctl200 DoubleIndex 201 See also memory202
Related manuals
Manual 29 pages 37.9 Kb Manual 44 pages 5.6 Kb Manual 2 pages 37.54 Kb