- ...Simulator
- I grateful to the many students at UW who used SPIM in their courses
and happily found bugs in a professor's code. In particular, the
students in CS536, Spring 1990, painfully found the last few bugs in
an ``already-debugged'' simulator. I am grateful for their patience
and persistence. Alan Yuen-wui Siow wrote the X-window interface.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
- ...computers.
- For a description of the real machines, see
Gerry Kane, MIPS RISC Architecture, Prentice Hall, 1989.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
- ...segments.
- These
instructions are real-not pseudo-MIPS instructions. SPIM
translates assembler pseudo instructions to 1-3 MIPS instructions
before storing the program in memory. Although the instructions in
memory look different from the source program, the translation is
straight-forward and can be understood with a bit of practice.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
- ...values).
- In earlier versions of SPIM (before 4.0), the type
code was passed in register $a0 and the values were slightly
different. Programs written for the older versions of SPIM need to be
modified to reflect these changes.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
- ...pointer.
- The MIPS compiler does not use a frame
pointer, so this register is used as callee-saved register
$s8.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.