MIPS >> Opcode

MIPS I


參考資訊:
1. mips-isa

opcode欄位對應如下:

bits 31 30 29 28 27 2625 24 23 22 2120 19 18 17 1615 14 13 12 11 10 9 8 7 65 4 3 2 1 0
opcode

opcode(bits 28..26)
000
001010011100101110111
(bits 31..29)
000
specialregimmjjalbeqbneblezbgtz
001addiaddiusltisltiuandiorixorilui
010cop0cop1cop2cop3
011
100lblhlwllwlbulhulwr
101sbshswlswswr
110lwc1lwc2lwc3
111swc1swc2swc3

function欄位對應如下:

bits 31 30 29 28 27 2625 24 23 22 2120 19 18 17 1615 14 13 12 11 10 9 8 7 65 4 3 2 1 0
opcode=specialfunction

function(bits 2..0)
000
001010011100101110111
(bits 5..3)
000
sllsrlsrasllvsrlvsrav
001jrjalrsyscallbreak
010mfhimthimflomtlo
011multmultudivdivu
100addaddusubsubuandorxornor
101sltsltu
110
111

rt欄位對應如下:

bits 31 30 29 28 27 2625 24 23 22 2120 19 18 17 1615 14 13 12 11 10 9 8 7 65 4 3 2 1 0
opcode=regimmrt

rt(bits 18..16)
000
001010011100101110111
(bits 20..19)
00
bltzbgez
01
10bltzalbgezal
11


返回上一頁