Some simple SPIM programs to get you started. These are taken from the chapter on SPIM Programming from the reading assignments page
|
Program |
Description |
|
Initializing the data segment |
|
|
|
|
|
Console I/O |
|
|
Manipulating bytes from/to the data segment |
|
|
Constructing 32-bit constant |
|
|
Performing bit-wise logical operations |
|
|
More complex example of iterations, procedure calls and arithmetic |