An implementation of the Micro-1 Processor (HW1) can be found here.
An implementation of the Nano-1 Processor (HW2) can be found here.
Midterm #1 will be held on March 6.
Download the password-protected midterm for your section before coming to class on Friday:
I'll announce the passwords at the beginning of the exam.
Midterm #2 will be on Friday, May 1 and will cover programming in Jasmin.
Here are some more solutions to the homework:
I fixed a few minor bugs in the Tournament class in Tournament.java.
I added two new lectures that will also be useful for the homework:
How to initialize static fields in Jasmin
How to return and compare the null pointer in Jasmin
A partial Java implementation of the JVM can be found here. This might be useful for the midterm.
Here's the Midterm 2 Review.
And here's midterm 2:
Here are the solutions to Assignment 5 (Tournament).
I dropped Lab 1 from the last homework. I also added a hint for computing remainders.
Note: please submit your solutions to the last homework in the style required by the GNU C compiler. If you are not using this compiler, then you may have to translate the asm blocks by hand into the strings required by gcc.
About the last homework: If you are having trouble with dec2bin.c, see the hint on the lab page I posted. Basically the idea is to use a global for the loop control variable.
Here's the section 2 final: final2.zip.