Invocation of simulator (simple MIPS assembly language programs)

For Fall 2009, invoke the simulator with the command:

/p/course/cs354-common/public/bin/sim354 -file source.s

The third command-line argument is the name of a MAL source code file; it is source.s in this sample command line. It is conventional for assembly language source code files to have the suffix .s on Unix machines.

You will be able to invoke the simulator with

sim354 -file source.s
if you change your path to add
/p/course/cs354-common/public/bin

Invocation of simulator (kernel plus MIPS assembly language program)

For the last assignment of the semester, we use the simulator while substituting its implied kernel with our own. To do this, the command-line arguments change. Invoke the simulator with

/p/course/cs354-common/public/bin/sim354 -notrap -quiet -memio -file source.s
Note that the file source.s (or whatever file name used for this argument) must have both the kernel code and the user application code.

Note that the simulator is compiled to execute on a Linux machine. For this semester, we are using the instructional Linux machines.

What you see

There are 5 portions (panes) of the window that the simulator displays.

  1. Registers. Each register's value is displayed (in hexadecimal).
  2. Control Buttons. Place the cursor over a button, and click to activate.
  3. Text segment. For each instruction, the address (given in hexadecimal within square brackets), machine code (again given in hexadecimal), and assembly language version of the instruction are displayed. You will also see (as a comment) the MAL version of a pseudoinstruction that needed to be synthesized into one or more actual MIPS RISC R2000 instructions. The simulator simulates MIPS R2000 instructions. To see portions that are not currently displayed, left click over this pane, and move the cursor in the direction that you wish to be further displayed.
  4. Data and Stack segments. For Fall 2005, contents of words are given in big endian order.
  5. Messages. When the assembler encounters errors, it displays them within this pane.

User Interface

Click on buttons to perform desired simulation operations. Many of the operations require further information that is obtained with the use of a dialog box.