
Nguồn ngoài
Introduction To MIPS Assembly Language Programming
This book was written to introduce students to assembly language programming in MIPS. As with all assembly language programming texts, it covers basic operators and instructions, subprogram calling, loading and storing memory, program control, and the conversion of the assembly language program into machine code.
- Tác giả
- Charles W. Kann III
- Nhà xuất bản
- Gettysburg College
- Nguồn
- LibreTexts
- Giấy phép
- CC BY
- Ngôn ngữ
- EN
- Danh mục
- Công nghệ thông tin
Mục lục· 80 mục
- 01: Introduction
- 1.01: Binary Numbers
- 1.02: Converting Binary Decimal and Hex Numbers
- 1.03: Character Representation
- 1.04: Adding Binary Whole Numbers
- 1.05: Integer Numbers (2's Complement)
- 1.06: Integer Arithmetic
- 1.07: Boolean Logical and Bitwise Operators
- 1.08: Context
- 1.09: Summary
- 1.10: Exercises
- 02: First Programs in MIPS Assembly
- 2.01: The MARS IDE
- 2.02: MIPS and Memory
- 2.03: First Program in MIPS Assembly
- 2.04: Program to Prompt and Read an Integer from a User
- 2.05: Program to Prompt and Read a String from a User
- 2.06: Summary
- 2.07: Java Program for Call by Value and Reference
- 2.08: Exercises
- 03: MIPS Arithmetic and Logical Operators
- 3.01: 3-Address Machines
- 3.02: Addition in MIPS Assembly
- 3.03: Subtraction in MIPS Assembly
- 3.04: Multiplication in MIPS Assembly
- 3.05: Division in MIPS Assembly
- 3.06: Solving Arithmetic Expressions in MIPS Assembly
- 3.07: Division and Accuracy of an Equation
- 3.08: Logical Operators
- 3.09: Using Logical Operators
- 3.10: Shift Operations
- 3.11: Summary
- 3.12: Exercises
- 04: Translating Assembly Language into Machine Code
- 4.01: Instruction Formats
- 4.02: Machine Code for the Add Instruction
- 4.03: Machine Code for the Sub Instruction
- 4.04: Machine Code for the Addi Instruction
- 4.05: Machine Code for the sll Instruction
- 4.06: Exercises
- 05: Simple MIPS Subprograms
- 5.01: Exit Subprogram
- 5.02: PrintNewLine Subprogram
- 5.03: The Program Counter (pc) register and calling a subprogram
- 5.04: Returning from a Subprogram and the ra Register
- 5.05: Input Parameter with PrintString Subprogram
- 5.06: Multiple Input Parameters with PrintInt Subprogram
- 5.07: Return Values with PromptInt Subprogram
- 5.08: Create a utils.asm File
- 5.09: Final Program to Prompt, Read, and Print an Integer
- 5.10: Summary
- 5.11: Exercises
- 06: MIPS Memory - the Data Segment
- 6.01: Flat Memory Model
- 6.02: Static Data
- 6.03: Accessing Memory
- 6.04: Methods of Accessing Memory
- 6.05: Exercises
- 07: Assembly Language Program Control Structures
- 7.01: Use of Goto Statements
- 7.02: Simple If Statements
- 7.03: if-else Statements
- 7.04: if-elseif-else Statements
- 7.05: Loops
- 7.06: Nested Code Blocks
- 7.07: A Full Assembly Language Program
- 7.08: How to Calculate Branch Amounts in Machine Code
- 7.09: Exercises
- 08: Reentrant Subprograms
- 8.01: Stacks
- 8.02: The Program Stack
- 8.03: Recursion
- 8.04: Exercises
- 09: Arrays
- 9.01: Heap Dynamic Memory
- 9.02: Array Definition and Creation in Assembly
- 9.03: Printing an Array
- 9.04: Bubble Sort
- 9.05: Summary
- 9.06: Exercises