Lab 3 is attached. Don't panic. You have three weeks to finish this, but it's best to get started as soon as possible.
lab3.tar.gz (v 1.3)
I've attached lab2.c, the starter C code for Lab 2, except with more hints in the comments. Check it out. I changed one line in it in pi_float() from:
unsigned int denom = ...;
to:
float denom = ...;
For purposes of our lab, it won't affect our accuracy, and people were forgetting to cast to float before dividing.
As requested, I've also attached lab2.out, the expected output for Lab2. Note that it is quite large, but the lines of interest are 1, 2052, 13261. Note that if your pi approximation is slightly different, then that is OK.
I've attached the C code for the interactive float.c program.
Lab 2 is attached. We will be focusing on floating point this week. If you have trouble reading the pdf, send me an email saying what pdf software you are using so that we can debug this further.
lab2.pdf (v 1.1)
Lab 1 is attached. This is a “Hello World” in MIPS assignment. You are expected to copy the given code and then write some of your own, original comments. Most of my comments are for things that you aren't expected to understand yet, such as the assembler directives, whereas I expect you to focus your comments more on the actual MIPS instructions. More information is included in the *.pdf, and we will talk more about MIPS in upcoming lectures.