Question: 1 . ) Convert the following MIPS assembly codes into machine language. Write the instructions in hexadecimal. a . add $t 0 , $s 0

1.)Convert the following MIPS assembly codes into machine language. Write the
instructions in hexadecimal.
a. add $t0, $s0, $s1
b. lw $t0,0x20($t7)
c. addi $s0, $0,-10
d. addi $s0, $0,73
e. sw $t1,-7($t2)
f. sub $t1, $s7, $s2
2.) For the above assembly codes,
a. Identify which instructions are R-type and which instructions are I-type.
b. For each I-type instruction, sign-extend the 16-bit immediate so that it becomes a 32-bit number. Write the 32-bit number in hexadecimal.
3.) Convert the following machine language into assembly codes.
a.0x8C0A0020
b.0x2268FFF4
c.0x02328020
d.0x016D4022

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 Programming Questions!