A machine instruction is a pattern of bits that asks for one machine operation to be executed.
Each MIPS machine instruction is 32 bits (four bytes) long. The three lines after main: call for three machine instructions. The remaining lines consist of information for the assembler and comments (for the human).
For this first program some SPIM options must be set. In the menu bar, click on Simulator then Settings to get the settings dialog. Select the following options:
|
![]() |
These settings simulate a bare machine with no user conveniences. Later we will include the conveniences.