Addition and Substraction

Add

add $d, $s, $t
0000 00ss ssst tttt dddd d000 0010 000

Adds registes t and stores the sm in registers $d.

add $3, $8, $9:
 0000 0001 0000 1001 00011 1000 0010 0000

Addi

I type instruction Immediate Ex: 32 is the immediate

addi x5, x1, 32
How to use addi

Ex: Add 21 into x5 register using addi

addi x5, x0, 21

you can also input the hexadecimal of 21 in the immediate place