Project 3 Source code is now available here:

Both C and Java was tested under Ubuntu (Linux) with gcc and javac respectively

1] C source code is here

The C program consists of 2 files, proj3.c contains the main program and get.c contains the instruction decoding code. The test program is contained in simple-fibo. The emulator reads from standard input. To run it, run the executable and redirect simple-fibo to stdin. (e.g. ./a.out < simple-fibo )

2] Java source code is here

The C program consists of one file, C230P3.java. The test program is contained in simple-fibo. The emulator reads directly from simple-fibo (hard coded). There is a bug in the reading routine, that is if the last line contains a newline at the end of the instruction, an exception is generated. This problem can be fixed, but my Java prowess is bad, so I let it go.

You are allowed to use all or parts of these programs to complete your project 4.