I have a doubt about the store word instruction in 32-bit MIPS assembly. Assuming that I have this in the data section:
.data
vector: .word 2,3,4,5,6......
and that the vector in memory starts from address 10 (decimal base example). When I do:
.text
sw $t0,vector($t1)
is the label vector
is replaced with 10?
EDIT:
li $v0, 1
la $a0,vector
syscall
I did so and I saw the start address but I don't understand a thing: if the immediate field is 16-bit and the label is replaced with the start address of vector
, with 16 bit how do I address all memory?