Simulating MIPS Assembler using java