Improve MIPS code generator (take 2)

At first, git didn't detect the actual code change and instead showed
the files as changed entirely (deleted then added?). Trying to fix it.