Let's say I want to do an lw
:
lw $s1, l2 ($t1)
From what I understand I'm saving in $s1
the word pointed by register ($t1) + l2
(immediate which in this case is the offset).
But isn't the offset a reference to a certain block (in this case word) of a line specified by an index? How can I do the load only with an offset and without an index? (And isn't the offset going to change if I use, let's say, a register $t2
instead of a $t1
?) I guess not cause otherwise the pointer arithmetic would be too complicated, so how does this work?