CS计算机代考程序代写 mips assembly Quiz2

Quiz2
Due No due date Points 10
Questions 3 Available until Jan 25 at 4:20pm Time Limit 60 Minutes
Instructions
You can take this quiz only once.
Once you start the quiz, you will need to complete it.
This quiz was locked Jan 25 at 4:20pm.
Attempt History
Attempt Time Score
LATEST Attempt 1 31 minutes 0 out of 10
Score for this quiz: 0 out of 10 Submitted Jan 25 at 4:20pm This attempt took 31 minutes.
Question 1
0 / 3.5 pts
Write the corresponding MIPS assembly instruction to each of the following machine code in hex. If it is of R-type (format), identify its op-code, rs, rt, rd, shamt, and funct- code. If it is of I-type (format), identify its op-code, rs, rt, and constant/offset.

a). 012A4024 hex
op code
What is the MIPS assembly instruction?
__________________________________________________
Your Answer:
R type instruction
000000 01001 01010 010000 00000 100100 opcode rs rt rd swift func

000000 01001 01010 01000 00000 100100 R-type
Opcode: 0
Rs: 9
Rt: 10
Rd: 8
Shamt: 0 Funct code: 36
and $t0, $t1, $t2
Question 2
0 / 3 pts
Write the corresponding MIPS assembly instruction to each of the following machine code in hex. If it is of R-type (format), identify its op-code, rs, rt, rd, shamt, and funct- code. If it is of I-type (format), identify its op-code, rs, rt, and constant/offset.
b). 35280064 hex

What is the MIPS assembly instruction?
__________________________________________________
Your Answer:
R type instruction
001101 01001 01000 00000 00001 100100 opcode rs rt rd swift func
op code

I-type
Opcode: 13
Rs: 9
Rd: 8 Constant/Offset: 100
ori $t0, $t1, 100
Question 3
0 / 3.5 pts
Write the corresponding MIPS assembly instruction to each of the following machine code in hex. If it is of R-type (format), identify its op-code, rs, rt, rd, shamt, and funct- code. If it is of I-type (format), identify its op-code, rs, rt, and constant/offset.
00094100 hex
op code

What is the MIPS assembly instruction?
__________________________________________________
Your Answer:
R type instruction
000000 00000 01001 01000 00100 000000 opcode rs rt rd swift func

Quiz Score: 0 out of 10
000000 00000 01001 01000 00100 000000 R-type
Opcode: 0 Rs: 0
Rt: 9
Rd: 8
Shamt: 4 Funct code: 0
sll $t0, $t1, 4