Question: Exercise 2.10 In the following problems, the data table contains bits that represent the opcode of an instruction. You will be asked to translate the
Exercise 2.10 In the following problems, the data table contains bits that represent the opcode of an instruction. You will be asked to translate the entries into assembly code and determine what format of MIPS instruction the bits represent.
a. 1010 1110 0000 1011 0000 0000 0000 0100two
b. 1000 1101 0000 1000 0000 0000 0100 0000two 2.10.1 [5] <2.5> For the binary entries above, what instruction do they represent?
2.10.2 [5] <2.5> What type (I-type, R-type) instruction do the binary entries above represent?
2.10.3 [5] <2.4, 2.5> If the binary entries above were data bits, what number would they represent in hexadecimal?
In the following problems, the data table contains MIPS instructions. You will be asked to translate the entries into the bits of the opcode and determine what is the MIPS instruction format.
a. add $t0, $t0, $zero
b. lw $t1, 4($s3)
2.10.4 [5] <2.4, 2.5> For the instructions above, show the hexadecimal representation of these instructions.
2.10.5 [5] <2.5> What type (I-type, R-type) instruction do the instructions above represent?
2.10.6 [5] <2.5> What is the hexadecimal representation of the opcode, rs, and rt fi elds in this instruction? For R-type instructions, what is the hexadecimal representation of the rd and funct fi elds? For I-type instructions, what is the hexadecimal representation of the immediate fi eld?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
