Which MIPS instruction adds what between two values?
Which MIPS instruction adds numbers between two values?
Which MIPS instruction adds numbers between two values?
Guitar Guy
Favorite Answer
I think you're looking for addi (add immediate)
Format:
addi (target), (source), (numerical value)
Examples:
addi $t0, $t0, 4 # is equivalent to ($t0 += 4) in high level languages
addi $t1, $t0, 7 # is equivalent to ($t1 = $t0 + 7)