lw $12, 0x10($13)
The original value in
$12 is irrelevant; it is replaced with
a value from memory (memory remains unchanged).
store word instruction,
copies data from a register to memory.
The register is not changed.
The memory address is specified using a base/register pair.
sw t,off(b) # Word at memory address (b+off) <— $t # b is a register. off is 16-bit two's complement.
As with the
the memory address must be word aligned (a multiple of four).