Written assignments are not worth as much as lab assignments, but are designed to give you some extra practice on lecture material and on some of the type of questions you may see on course exams.
You are allowed to work with one or two classmates of your choice, but no more than two, or you may work alone. However, I suggest working together to compare answers and submit a single joint solution.
If you work with a partner(s) only one of you should submit yor joint solution (and make sure all of your names are on it).
First run update31, and you will get a written_hw/01 subdirectory.
$ update31 $ cd cs31/written_hw/01 $ ls README diss.s
You will solve 2 problems: the first can be written up in the diss.s file and then printed out, or you can print out diss.s and write your answers on the print out. To print on our system:
lpr diss.sQuestions:
x is at R[%ebp]-4 y is at R[%ebp]-8 z is at R[%ebp]-12
res = 0; while(i < n) { res = res +i; i++; }You will do this in two steps, and show both steps:
res is at R[%ebp]-4 n is at R[%ebp]-8 i is at R[%ebp]-12To receive partial credit annotate your IA32 code with comments describing what it does
Submit a printout/hard-copy of your answers by the due date to Bridget in the main CS office. Make sure your name(s) are clearly printed on what you hand in, and if you work with a partner(s), please only submit a single joint solution, and please staple all your pages together.