The solution to the paper part of the assignment is Here
Here's my solution to the programming part of HW2 and
here's my test data.
One thing to notice is that I didn't ask you to handle addi, but my solution does handle it. That's because I realized I hadn't asked you to handle any arithmetic instructions that require sign-extension.