Question: In the following problems, you will be using the MIPS assembly code as listed below to explore the trade-offs of the immediate field in the

In the following problems, you will be using the MIPS assembly code as listed below to explore the trade-offs of the immediate field in the MIPS I-type instructions.a. 0x00400000 beq $50. $0, FAR addi $50, $s0, 1 j AWAY 0x04000010 AWAY: addi $s0, $50, 1 0x00403100 FAR: b.

By reducing the size of the immediate fields of the I-type and J-type instructions, we can save on the number of bits needed to represent
these types of instructions. If the immediate field of I-type instructions were 8 bits and the immediate field of J-type instructions were 18 bits, rewrite the MIPS code above to reflect this change. Avoid using the lui instruction.

a. 0x00400000 beq $50. $0, FAR addi $50, $s0, 1 j AWAY 0x04000010 AWAY: addi $s0, $50, 1 0x00403100 FAR: b. 0x00000100

Step by Step Solution

3.41 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To rewrite the MIPS code provided using reduced immediate field sizes for Itype and Jtype instructio... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Organization Design Questions!