Professional Documents
Culture Documents
Lecture: 3
4. Compromise
A problem occurs when an instruction needs longer fields. For example in the load word (lw)
If we use R type, the maximum number that can load from memory is 25
Compromise is to keep all instruction the same length, thereby requiring different kinds of instruction
formats
Instruction formats:
1- R Type
Op rs rt rd shamt funct
EX:
0 rs rt rd 0 32
2- I Type
Op rs rt Constant or address
EX:
8 Rs rt Im
Op address
6 bits 26 bits
Op
Operation code
Address
Jump to a specific address
Max jump is 226
EX:
J address
2 address
6 bits 26 bits