![]()
You may want to use TextPad as your text editor for developing SPIM programs. TextPad is available on all SPU lab machines under Department Specific Programs|!Computer Science|TextPad. You can also open a file in TextPad by right-clicking on the file name and selecting Textpad. One very useful feature is line numbering (View|Line Numbers).
You can also purchase TextPad for your home use at www.textpad.com.
Charles Dietlein has developed a MIPS/SPIM-specific syntax file for textpad that makes it even easier to use for developing SPIM programs. To install and use this file, look up "syntax" under Textpad help. Note that you should rename it "mips.syn" before using it.
![]()
Note: All files end in .txt so the web server will see them - when saving, change the type to .s so that PCSPIM will recognize it.
| template.s: A template to help you get started | |
| helloworld.s: An example of simple I/O commands. | |
| addem.s: An example of adding numbers. | |
| multiple.s: An example that determines if a number is an even multiple of another. | |
| param.s: An example of passing parameters to a procedure. | |
| nesting.s: An example of nested procedure calls. | |
| upper.s: An example of using string input and output. |
![]()
Kevin Bolding January 15, 2010