MIPS to C Translation

sw $t1, 0($t0)     # $t0 = A[0]

You’ve got this back-to-front. It is a store, so it is used:

sw $t1, 0($t0)     # A[1] = $t1

Leave a Comment