Description

A hands-on view of the highly successful MIPS family of microprocessors, written for programmers developing systems applications for the MIPS platform.

The MIPS Programmer's Handbook describes the MIPS architecture from the perspective of assembly- and C-language programmers, with special emphasis on issues related to embedded applications. Engineers writing system-level programs for MIPS-based embedded systems will find the topic selection especially useful including the sections on software conventions, initializing the processor in a bare machine environment, and writing exception handlers.

For convenient use, the instruction set reference is presented with only one page per instruction. The authors focus on the instructions available to assembly-language programmers, rather than on the hardware-level instruction set documented in data books released by vendors of the MIPS processor. Provides enough detail for anyone doing serious system-level programming. Also included are ten complete program examples, with line-by-line explanations.

Several sample sections are available from the authors' website.

Table of Contents

The MIPS Programmer's Handbook
by Erin Farquhar, Philip Bunce
    Preface
    1 Introduction
    2 Software Conventions
      2.1 Introduction
      2.2 Register-Usage Conventions
      2.3 Stack Usage Conventions
      2.4 Procedure Format
      2.5 Program Listings
        2.5.1 Example 1: A Simple Leaf Function
        2.5.2 Example 2: Leaf Function with Local Array
        2.5.3 Example 3: Simple Nonleaf Function
        2.5.4 Example 4: Nonleaf Function That Saves Three Registers
        2.5.5 Example 5: Nonleaf Function That uses Four Save Registers
        2.5.6 Example 6: Simple Floating-Point Leaf Function

    3 Initialization
      3.1 Introduction
      3.2 Example Programs
        3.2.1 Example 1: A Simple Initialization
        3.2.2 Example 2: Initialization That Flushes the Caches
      3.3 Flushing the Cache
        3.3.1 Flushing the R3000 Cache 26
        3.3.2 Flushing the LR33000 Cache
      3.4 Program Listings
        3.4.1 Example 1: A Simple Initialization
        3.4.2 Example 2: Initialization That Flushes the Cache
        3.4.3 Example 3: R3000 Cache Flush
        3.4.4 Example 4: R33000 Cache Flush

    4 Exceptions
      4.1 Introduction
      4.2 External Interrupts
        4.2.1 Hardware Interrupt Examples
          4.2.1.1 Example 1: A Single Interrupt Source
          4.2.1.2 Example 2: Two Interrupt Sources
          4.2.1.3 Example 3: Nest

Details

No. of pages:
416
Language:
English
Copyright:
© 1993
Published:
Imprint:
Morgan Kaufmann
Electronic ISBN:
9780080511733
Print ISBN:
9781558602977

About the authors