The SW instruction stores data to a specified address on the data
memory with a possible offset, from a
source
register.
It's syntax is:
SW $source register's address, offset($destination register's address).
The sample SW instruction demonstrated in the datapath above is SW $2, ($5).
The instruction's equivalent in binary is:
Information on the content of the registers used:
Register's Address |
Register's Address (Binary) |
Register's Value |
Register's Value (Binary) |
$2 |
00010 |
|
|
$5 |
00101 |
|
|