Changing adresses

Hi,

# Let's say I did my first check for first address and I want to increase it and take the next value to $t1.
addiu $a0 $a0 2
lh $t1, ($a0)
# after that I may use $t1 to check if it is empty or a tile.

I was using this one for some of the assignments and it was working but now I’m really not sure if this approach is correct. Can you tell me if it is wrong and which way is better to use?

Thanks in advance.

In case you’re working on the whole field (array of halfwords) this is totally fine:)

1 Like