For this assignment you will see and edit some MIPS assembly code. MIPS is an ISA that is primarily used in embedded systems.
There are many MIPS tutorials online, these are decent ones:
http://labs.cs.upt.ro/labs/so2/html/resources/nachos-doc/mipsf.html
http://logos.cs.uic.edu/366/notes/mips%20quick%20tutorial.htm
This site has more detailed documentation:
https://en.wikibooks.org/wiki/MIPS_Assembly
QtSpim is a MIPS simulator which can run MIPS assembly code. If you did not already install QtSpim at the beginning of the semester, do so now. Go here and download the most recent .msi file for Windows, or download the most recent .mpkg.zip file for macOS.
You were provided with two files: hello_world.s
and print_chars.s
. These
are both MIPS assembly programs.
hello_world.s
Open up hello_world.s
and an editor and read through it, noting the
comments.
Run this program in QtSpim by selecting File -> Reinitialize and Load File. You can then run the program by pressing the green triangle button. The output should be displayed in the console. If it does not appear automatically, bring up the console by selecting Window -> Console.
print_chars.s
Open up print_chars.s
in an editor. This program prints out the same
characters that the print_chars.jas
IJVM program did, only using MIPS. Read
this file and run it in QtSpim.
Once you have verified that it works, modify the program so that it prints out every other lowercase letter like you did in the Mic1MMV assignment. The new output should look like this:
acegikmoqsuwy
Push your modified print_chars.s
assembly program to git-keeper.