Question: Problem 2 Represent the following instructions in binary (machine code) format. a. add $t1, $s1, $s2 (R format) b. addi $t0, $s1, -2 (I format)

Problem 2

Represent the following instructions in binary (machine code) format.

a. add $t1, $s1, $s2 (R format)

b. addi $t0, $s1, -2 (I format)

Opcode and funct numbers for add and addi are given in following table:

Mnemonic Meaning Type Opcode Funct

add Addition R 00 32

addi Add Immediate I 08 NA

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!