is it this instruction is correct Using SPIM ?
add $t1,$zero,-1
after run program the $t1 is fill by "ffffffff"
is it this instruction is correct Using SPIM ?
add $t1,$zero,-1
after run program the $t1 is fill by "ffffffff"
Copyright © 2021 Jogjafile Inc.
You want
addiinstead ofaddThe
addiinstruction sign-extends the 16-bit immediate, so it should place0xffffffffin$t1.