Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. (12 Points) The following tables show the breakdown of bits for the three dif- ferent MIPS instruction formats we studied in class: - MIPS

image text in transcribed

1. (12 Points) The following tables show the breakdown of bits for the three dif- ferent MIPS instruction formats we studied in class: - MIPS R-Format (Keep in mind that the order of "source operands" and "des- tination operands is swapped in this encoding format. In other words for an operation like "op rd, rs, rt the encoding would be "opcode|rs|rt|rd|shift|func") opcode rd shift func 6 bits 5 bits 5 bits 5 bits 5 bits 6 bits rs rt MIPS I-Format Is opcode rt IMM 6 bits 5 bits 5 bits 16 bits MIPS J-Format opcode Address(part) 6 bits 26 bits For the following list of MIPS instructions (and their encoding in hexadecimal bytes), specify their instruction format and write down all the 32 bits for the encoded instruction, broken down into their components, i.e., "opcode", "rs, "rt", etc. (For example: The instruction "add $1, 82, 8-3" has the encoding "Ox02538820" (a 32-bit hexadecimal number.)) Note: Do not overthink this! All you have to do is say which of the three possible instruction formats this instruction belongs to, and specify (depending on the format) the bits for opcode, etc. (a) 02538820 add $s1, $82, $s3 (b) 22510005 addi $81, $s2, 5 (c) 82510019 lb $51, 25($s2)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

3rd Edition

0760049041, 978-0760049044

More Books

Students also viewed these Databases questions

Question

be is an unsigned char what is b = 2 3 - 3 0

Answered: 1 week ago