Which MIPS instruction adds what between two values?

2013-02-16T19:38:06Z

Which MIPS instruction adds numbers between two values?

Guitar Guy2013-02-17T22:15:37Z

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)