To order this title, and for more information, click here
By Erin Farquhar Philip Bunce
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.
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: Nested Interrupts
4.2.1.4
Example 4: Interrupt Handler in C
4.2.1.5 Example 5: UNIX Time Function Support
4.2.1.6 Example 6: Prioritizing
Interrupts
4.2.2 Software Interrupts Example
4.3 Exceptions in a Branch Delay Slot
4.4
Interrupt Latency
4.5 Program Listings
4.5.1 Example 1: A Single Interrupt Source
4.5.2 Example 2: Two
Interrupt Sources
4.5.3 Example 3: Nested Interrupts
4.5.4 Example 4: Interrupt Handler in C
4.5.5 Example
5: UNIX Time Function Support
4.5.6 Example 6: Prioritizing Interrupts
4.5.7 Example 7: Software Interrupts
4.5.8 Example 8: Exceptions in a Branch Delay Slot
Books and book related electronic products are priced in US dollars (USD), euro (EUR), and Great Britain Pounds (GBP). USD prices apply to the Americas and Asia Pacific. EUR prices apply in Europe and the Middle East. GBP prices apply to the UK and all other countries.