Translate C++ code to MIPS code