If I understand your problem correctly, you will need to use the la(load address) instruction to get the address into the register. You will then use the lw(load word) and sw(store word) instructions to manage the data. For example, consider the following code snippet
.data
tmpval: .word 5
__start:
sub $sp, $sp, 12
sw $ra, 0($sp)
sw $t0, 4($sp)
sw $t1, 8($sp)
la $t0, tmpval
lw $t1, 0($t0)
li $t1, $2
sw $t1, 0($t0)
lw $ra, 0($sp)
lw $t0, 4($sp)
lw $t1, 8($sp)
add $sp, $sp, 12
jr $ra
, , $t0 ( ) .