SPARC Assembly Language Reference Manual
  Search only this book
Download this book in PDF

............................Contents


Preface
xi
...Before You Read This Book xii
...How This Book is Organized xii
...What Typographic Changes Mean xiii
...Shell Prompts in Command Examples xiv

1. SPARC Assembler for SunOS 5.x
1
...Introduction 1
...Operating Environment 1
...SPARC Assembler for SunOS 4.1 Versus SunOS 5.x 2
......Labeling Format 2
......Object File Format 2
......Pseudo-Operations 2
......Command Line Options 2

2. Assembler Syntax
3
...Syntax Notation 3
...Assembler File Syntax 4
......Lines Syntax 4
......Statement Syntax 4
...Lexical Features 4
......Case Distinction 4
......Comments 5
......Labels 5
......Numbers 5
......Strings 6
......Symbol Names 6
......Special Symbols - Registers 7
......Operators and Expressions 9
...Assembler Error Messages 10

3. Executable and Linking Format
11
...ELF Header 12
...Sections 14
......Section Header 15
......Predefined User Sections 19
......Predefined Non-User Sections 20
...Locations 21
...Addresses 22
...Relocation Tables 22
...Symbol Tables 22
...String Tables 24
...Assembler Directives 24
......Section Control Directives 25
......Symbol Attribute Directives 25
......Assignment Directive 25
......Data Generating Directives 25

4. Converting Files to the New Format
27
...Introduction 27
...Conversion Instructions 27
...Examples 28

5. Instruction-Set Mapping
29
...Table Notation 30
...Integer Instructions 31
...Floating-Point Instruction 39
...Coprocessor Instructions 40
...Synthetic Instructions 41

A. Pseudo-Operations
45
...Alphabetized Listing with Descriptions 45

B. Examples of Pseudo-Operations
55

C. Using the Assembler Command Line
59
...Assembler Command Line 59
...Assembler Command Line Options 60
...Disassembling Object Code 63

D. An Example Language Program
65

E. SPARC-V9 Instruction Set
71
...SPARC-V9 Changes 71
......Registers 72
......Alternate Space Access 73
......Byte Order 73
...SPARC-V9 Instruction Set Changes 74
......Extended Instruction Definitions to Support the 64-bit Model74
......Added Instructions to Support 64 bits 75
......ementation
........Implementation 75
......Deleted Instructions 76
......Miscellaneous Instruction Changes 76
...SPARC-V9 Instruction Set Mapping 77
...SPARC-V9 Floating-Point Instruction Set Mapping 85
...SPARC-V9 Synthetic Instruction-Set Mapping 87
...SPARC-V9 Instruction Set Extensions 89
......Graphics Data Formats 89
......Eight-bit Format 89
......Fixed Data Formats 89
......SHUTDOWN Instruction 90
......Graphics Status Register (GSR) 90
......Graphics Instructions 90
......Memory Access Instructions 96

Index
99