CS 208: Computer Organization and Architecture
Getting started with MIPS and MARS
This assignment will get you started with the MIPS assembly language and the MARS simulator.
There is nothing to hand in for this assignment, but you should bring questions to class
on Wednesday.
Getting MARS
- Make sure you have the Java 1.5 (or later) runtime environment installed.
- Get the MARS Simulator. (That's a Carleton-local copy of the file. You
can also get it at the MARS home page.)
- You should be able to just double-click on the Mars4_4.jar file to launch the simulator.
A first MIPS program
- Get the sum_odds.asm program.
- Launch MARS
- File->Open to open sum_odds.asm. You may have to move a sub-window boundary in MARS to see its text.
- Run->Assemble
- Run->Go. Does it print out "25"? Yea. (Or Yay, if you prefer that spelling.)
What else
Read Chapter 2 to help you make sense of what's going on. Bring lots of questions on Wednesday.