Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc Intel XENIX 286 Programmers Guide (86) - Tenox.tc

09.06.2013 Views

XENIX Programming CONTENTS Using the adb Memory Maps Displaying the Memory Maps Changing the Memory Map Creating New Map Entries Validating Addresses Miscellaneous Features Combining Commands on a Single Line Creating adb Scripts Setting Output Width Setting the Maximum Offset Setting Default Input Format Using XENIX Commands Computing Numbers and Displaying Text An Example: Directory and Inode Dumps Patching Binary Files Locating Values in a File Writing to a File Making Changes to Memory CHAPTER 7 as: ASSEMBLER Command Usage Lexical Conventions Identifiers Constants White Space Comments Assembly Segments Text, Data, and Bss Segments The Location Counter Statements Labels Null Statements Expression Statements Assignment Statements Keyword Statements Expressions Expression Operators Types Type Propagation in Expressions Table of Contents PAGE 6-22 6-22 6-24 6-24 6-25 6-25 6-25 6-26 6-26 6-27 6-27 6-28 6-28 6-29 6-30 6-30 6-31 6-31 7-1 7-2 7-2 7-2 7-2 7-2 7-3 7-3 7-4 7-4 7-4 7-5 7-5 7-5 7-6 7-6 7-6 7-6 7-7 vii

Table of Contents CONTENTS Assembler Directives Even Directive Floating-Point Directives Global Directive Segment Directives Common Directive Insert Directive ASCII Directives Listing Directives Block Directives Initial Value Directives End Directive Machine Instructions Mnemonic List Byte Instructions Branch Instructions · String Instructions Intersegment Instructions Input/Output Instructions 80286 Instructions Addressing Modes Register Operands Immediate Operands Direct Address Operands Based Operands Indexed Operands Based Indexed Operands Indirect Address Operands Diagnostics CHAPTER 8 csh: C SHELL Invoking the C Shell Using Shell Variables Using the C Shell History List Using Aliases Redirecting Input and Output Creating Background and Foreground Jobs Using Built-In Commands Creating Command Scripts Using the argv Variable Substituting Shell Variables Using Expressions Using the C Shell: A Sample Script Using Other Control Structures Supplying Input to Commands Catching Interrupts Using Other Features viii XENIX Programming PAGE 7-8 7-8 7-9 7-9 7-9 7-10 7-10 7-10 7-11 7-11 7-12 7-12 7-12 7-12 7-16 7-17 7-17 7-18 7-18 7-18 7-19 7-19 7-20 7-20 7-21 7-21 7-22 7-22 7-23 8-1 8-2 8-4 8-6 8-7 8-8 8-9 8-10 8-11 8-11 8-13 8-14 8-16 8-17 8-18 8-18

Table of Contents<br />

CONTENTS<br />

Assembler Directives<br />

Even Directive<br />

Floating-Point Directives<br />

Global Directive<br />

Segment Directives<br />

Common Directive<br />

Insert Directive<br />

ASCII Directives<br />

Listing Directives<br />

Block Directives<br />

Initial Value Directives<br />

End Directive<br />

Machine Instructions<br />

Mnemonic List<br />

Byte Instructions<br />

Branch Instructions<br />

· String Instructions<br />

Intersegment Instructions<br />

Input/Output Instructions<br />

80<strong>2<strong>86</strong></strong> Instructions<br />

Addressing Modes<br />

Register Operands<br />

Immediate Operands<br />

Direct Address Operands<br />

Based Operands<br />

Indexed Operands<br />

Based Indexed Operands<br />

Indirect Address Operands<br />

Diagnostics<br />

CHAPTER 8<br />

csh: C SHELL<br />

Invoking the C Shell<br />

Using Shell Variables<br />

Using the C Shell History List<br />

Using Aliases<br />

Redirecting Input and Output<br />

Creating Background and Foreground Jobs<br />

Using Built-In Commands<br />

Creating Command Scripts<br />

Using the argv Variable<br />

Substituting Shell Variables<br />

Using Expressions<br />

Using the C Shell: A Sample Script<br />

Using Other Control Structures<br />

Supplying Input to Commands<br />

Ca<strong>tc</strong>hing Interrupts<br />

Using Other Features<br />

viii<br />

<strong>XENIX</strong> Programming<br />

PAGE<br />

7-8<br />

7-8<br />

7-9<br />

7-9<br />

7-9<br />

7-10<br />

7-10<br />

7-10<br />

7-11<br />

7-11<br />

7-12<br />

7-12<br />

7-12<br />

7-12<br />

7-16<br />

7-17<br />

7-17<br />

7-18<br />

7-18<br />

7-18<br />

7-19<br />

7-19<br />

7-20<br />

7-20<br />

7-21<br />

7-21<br />

7-22<br />

7-22<br />

7-23<br />

8-1<br />

8-2<br />

8-4<br />

8-6<br />

8-7<br />

8-8<br />

8-9<br />

8-10<br />

8-11<br />

8-11<br />

8-13<br />

8-14<br />

8-16<br />

8-17<br />

8-18<br />

8-18

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!