In the following problems, you will be using the MIPS assembly code as listed below to explore

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 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.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Computer Organization And Design The Hardware Software Interface

ISBN: 9780123747501

4th Revised Edition

Authors: David A. Patterson, John L. Hennessy

Question Posted: