Do what MIPS code does in C