Question: Translate the following MIPS code into binary values. I will display register numbers on the screen. Please show all your work. a ) mul rd

Translate the following MIPS code into binary values. I will display register numbers on the screen.
Please show all your work.
a) mul rd, rs, rt (multiply without overflow)
mul $t9, $t7, $s7
Opcode rs rt rd shamt func
6 bits 5 bits 5 bits 5 bits 5 bits 6 bits
Opcode for mul is 28 and func is 2.
b) addi rt, rs, imm (add immediate)
addi $t8, $t9,-10
Opcode rs rt imm
6 bits 5 bits 5 bits 16 bits
Opcode for addi is 8.
Hint: write the imm as a positive number first, using all available digits, then invert and increment
Translate the following MIPS code into binary values. I will display register numbers on the screen.
Please show all your work.
a) mul rd, rs, rt (multiply without overflow)
mul $t9, $t7, $s7
Opcode for mul is 28 and func is 2.
b) addi rt, rs, imm (add immediate)
addi $t8, $t9,-10
Opcode for addi is 8.
Hint: write the imm as a positive number first, using all available digits, then invert and increment
 Translate the following MIPS code into binary values. I will display

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!