Variable Array Indexing
Very common use of arrays: walk through the array by incrementing a variable
lw and sw instructions allow offset to be specified:
as a constant
as the contents of a register
lw $t0, 4($t2)
lw $t0, $t1($t2)
vs.
Previous slide
Next slide
Back to first slide
View graphic version