Assemblers, Linkers, and the SPIM Simulator

Introduction When to Use Assembly Language Drawbacks of Assembly Language Assemblers Object File Format Additional Facilities Linkers Loading Memory Usage Procedure Call Conventions Procedure Calls Procedure Call Example Another Procedure Call Example Exceptions and Interrupts Exception Handler Input and Output SPIM Simulation of a Virtual Machine Getting Started with SPIM Surprising Features Byte Order System Calls MIPS R2000 Assembly Language Addressing Modes Assembler Syntax Encoding MIPS Instructions Instruction Format Arithmetic and Logical Instructions Constant-Manipulating Instructions Comparison Instructions Branch Instructions Jump Instructions Trap Instructions Load Instructions Store Instructions Data Movement Instructions Floating-Point Instructions Exception and Interrupt Instructions Concluding Remarks Exercises

[1]  Alfred V. Aho,et al.  Compilers: Principles, Techniques, and Tools , 1986, Addison-Wesley series in computer science / World student series edition.

[2]  C. Tilly The big pictures , 1988 .