CSC 205 - Computer Organization: Homework #2 - MIPS Assembly
VerifiedAdded on 2019/09/25
|6
|982
|1
Homework Assignment
AI Summary
This document presents a comprehensive solution to CSC 205 Homework #2, focusing on MIPS assembly language and SPIM programming. The assignment includes several problems that require students to translate C code into MIPS assembly, write SPIM programs, and analyze existing MIPS code. Specific tasks involve converting a C program statement to a two-operand MIPS format, analyzing a given MIPS program to determine its function and the values of registers, writing MIPS code for C statements involving arithmetic operations, conditional statements, and loops, and implementing procedures in MIPS assembly. The solutions include SPIM source code and the corresponding output, demonstrating the execution and results of the programs. The document addresses topics such as instruction formats, register usage, and the implementation of control flow structures within the MIPS architecture.
1 out of 6