Question: Write simple MIPS assembly code and simulate it using the simulator that was introduced in the lab (QtSpim). Refer to the tutorial post on Blackboard.
Write simple MIPS assembly code and simulate it using the simulator that was introduced in the lab (QtSpim). Refer to the tutorial post on Blackboard. 1.Write MIPS assembly code for swapping the contents of two registers, $t0 and $t1. (Similar example in the tutorial) 2.Write MIPS assembly code to reverse the bits in a register. Assume the register of interest is St3. 3.Write MIPS assembly code to print your name in the following format on the screen/console. Format: My name is Bond, James Bond. So it should be: My name is "your last name", "your first name last name". 4.Write MIPS assembly code to sum V positive integers. For example, n=5, read 5 numbers in memory and add them together. (Similar example in the tutorial) 5.Write MIPS assembly code to calculate N-factorial. Read n from the memory. Lab Assignment: Provide comments throughout your code. Write a report, which includes: 1.MIPS Code for each program 2.Output Screen shot for registers/console for each program. 3.Conclusion
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
