Assembly language (MIPS) difference betweent addi and add

user2171775 picture user2171775 · Mar 20, 2013 · Viewed 56k times · Source

I'm trying to understand the difference between using addi and add, does both do the same thing?

e.g

addi  $t0, $0, $a0
add  $t0 , $0, $a0

Answer

Oleksi picture Oleksi · Mar 20, 2013

add adds the value in two registers

addi adds an immediate value (constant) to the register

This gives you some example.