Show bit representation of floating-point values (2/27):
show-float.c.
Other files
Script to mail files for homework submission
mail-files.
To use this script, put a copy in your directory
and use chmod u+x to make it executable.
You can then use it to mail me one or more files
containing source code, for example:
mail-files pgm1.s pgm2.s ....
It prompts for homework number and text to include as the
body of the message, and sends a Cc of the message
to your username at trinity.edu.
Script to combine files and pass to command-line version
of simulator
spim-multifile.
(This is meant to be useful if you want to split
a program into multiple .s files and
then recombine them at runtime and execute with
spim -f.)
To use this script, put a copy in your directory
and use chmod u+x to make it executable.
Sample execution:
spim-multifile p1.s p2.s ....
Two scripts (one using Python, one using Scala) to
"preprocess" MIPS assembly code including macros
(which SPIM doesn't support), plus a short example
of use here.
Each code* subdirectory contains a
program plus a script mips-preprocess
to run it.
To use one of them, put both files in your directory
and use chmod u+x to make the script executable.
Sample execution:
mips-preprocess p1.s
Examples of using LaTeX's TikZ library to draw
circuit and state-machine diagrams as in Appendix B
here.