vi
- for editingmake
- for compiling programslint
- for checking consistencymail
- for sending mailrn
or tin
- for reading newsnetscape
- for accessing the world wide web
If you are a new user, you may want to download this
sample .cshrc as your .cshrc
wagner@cs.utsa.edu
)
giving your web page URL and your preferred email address.
xspim
to
run our MIPS assembly language. The documentation for this
simulator can be found at
ftp://vip.cs.utsa.edu/pub/classes/cs2734f98/spim.ps.
Put a bookmark or link to this documentation for easy reference.
cs2734/lab1
directory in your home directory.
fact2.s
by typing:
spim -file fact2.s
(You should type 3 (carriage return) at the prompt, the the program will calculate and print 3! or 6.)
Next use the xwindows version of spim, by typing:
xspim -file fact2.s
When the simulator comes up, click on step to execute one instruction at a time or run to execute the entire program. In either case you should get 6 printed.
If you are stepping, you will get the prompt Enter n: after you step through the instruction syscall. You should continue stepping until the second time you have executed syscall and then immediately type 3 and carriage return in the window. Continue stepping until you get 6 printed in the window.
To get checked off in this laboratory: