A simulated MIPS processor written in C