

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Getting Started with spim 1
The simple version of SPIM is called spim on Windows and UNIX. It can be run from any console or by another program. Although spim may be more difficult to learn, it operates just like PCSpim and xspim and provides the same functionality. The spim terminal interface provides the following commands: exit Exit the simulator. read “file” Read file of assembly language into SPIM. If the file has already been read into SPIM, the system must be cleared (see reinitialize, below) or global labels will be multiply defined. load “file” Synonym for read. execute “a.out” Read the MIPS executable file a.out into SPIM. This command is only available when SPIM runs on a sys- tem containing a MIPS processor. run
2 Getting Started with spim
breakpoint addr Set a breakpoint at address addr. addr can be either a memory address or symbolic label. delete addr Delete all breakpoints at address addr. list List all breakpoints.
. Rest of line is an assembly instruction that is stored in memory.