not mask, mask1 # Create inverse mask
and cell, mask, cell # Clear 'C'
or cell, cell, little_c # Merge little_c into cell
add i, 5
should be
add i, i, 5
move M[address], 0 # clear element
not
move m[address], 0 # clear element
cvt
. In MAL, the equivalents
are cvt.s.w
and cvt.w.s
.
add $20, $19, -1
not
add $19, $20, -1
end
should be
addi $2, $0, 10
not
addi $8, $0, 10
This error is propagated (incorrectly) in figures 10.3 and 10.5.
move
instruction should
read S1, not S2. The source of a move
cannot be an
immediate. If you want to move an immediate, use the li
instruction.