A simple mips emulator