go to previous page   go to home page   go to next page hear noise

Answer:

Each MIPS instruction is 32 bits (four bytes) long. The PC is incremented to point at the next instruction.


Sequential Execution

MIPS machine instructions are all 32 bits wide (4 bytes). Normally, instructions are executed one after another starting with the first instruction of the program and proceeding upward through memory. The execution sequence can be changed with a branch or a jump machine instruction.

Here, for example, is the program from the previous chapter. The three machine instructions have been placed at locations 0x00400000, 0x00400004, and 0x00400008, and are executed in that order.

SPIM view of the program

It would take three machine cycles to execute this very tiny program.


QUESTION 9:

After the instruction at 0x00400008 has executed, what happens?