Spim Tutorial, A small MIPS program is used as an example.