The purpose of this webpage is to help students to learn how to program in Spim assembly language by showing them the basic concepts and by using source code examples to ilustrate these concepts, since the official document given by the language developers does not give you any examples.IMPORTANT: This webpage doesn't give the syntax of the language since the complete reference is well described in the OFFICIAL SPIM TUTORIAl between pages 12 and 21
This tutorial is organized as follow:
INTRODUCTION: It tells you how to run spim programs and how to debug them.
BASICS: It gives you a template on how to organize your program, and it also explains you how to use registers, assembler directives, and system calls
FUNCTIONS: It explains you what is a stack frame and how to use function calls.
EXAMPLES: It gives you source code of several useful programs. All examples are commented and have the purpose of demostrate you how to implement certain feature of the language.
SOFTWARE: It gives you a link to a Spim page where you can download the SPIM software for several platforms.