Vous êtes sur la page 1sur 2

Annexe

MIPS register Set

MIPS instructions
R-type instructions (add, sub, and, or, slt): rd <-- rs funct rt

RI-type instructions (addiu): rt <-- rs funct (Immidiat 16)

Load: rt <-- Mem[rs + I16] Store: Mem[rs + I16] <-- rt

Branch equal: PC <-- (rs == rt) ? PC + 4 + I16 <<2 : PC + 4

J instruction (J, Jal) : PC <-- PC31-28 IR25-0 00


2 I26
Code opération et code fonction de quelques instructions :

Instruction Code opération Code fonction


Addi (RI type) 001000 (8) X
Sll (R type) 000000 (0) 000000 (0)
Or (R type) 000000 (0) 100101 (37)
Add (R type) 000000 (0) 100000 (32)
Sub (R type) 000000 (0) 100010 (34)
slt(R type) 000000 (0) 101010 (42)
beq 000100 (4) x
bne 000101 (5) x
J 000010 (2) x
Jal 000011 (3) X
SW 101011 (43) X
LW 100011 (35) x
Jr 000000 (0) 001000 (8)

Vous aimerez peut-être aussi