SPIM is a MIPS32 simulator originally written by James R. Larus to support a course in compiler design at the University of Wisconsin--Madison. It has been improved and expanded and now exists in several versions. The downloads page contains versions for every operating system. You can choose the one that works on your computer.