Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started