mips instruction simulator written in C