The assembler in SPIM automatically assembles code starting at address 0x10000000.
Here is what this part of the SPIM simulation looks like:
The program must load a register with data from memory, and, at the end, store a result back to memory. The above program fragment does this, when you complete it.
The register use table in the documentation summarizes how registers are used in this program. When you program, decide on the registers you need and what they are used for. Then write down your decisions! This is crucial for getting things correct.
A register where a value is built up after several calculations is called an accumulator. (Some old processors have a single, special register that is used for this purpose. But MIPS has many general purpose registers for this).
Remember that data loaded from memory is not
available to the instruction following the load.
The instruction after a
in the "load delay slot",
should not try to use the loaded data.
Fill in the blanks.
Look at the previous answer to help with
Use it to load the upper half of the base register with
the upper half of the first data address.