1) Translate the following MIPS assembly instructions into binary code. a) add $t0, $t1,$t2 b) addi $s0, $s1, #20 c) lw $t2, 64($t0) d) sw $s0, 80($t0) Note: $t0 - $t2 are registers 8-10, $s0 and $s1 are registers 16 and 17. You can find the opcode and function code information from lecture notes or online MIPS manual.
1) Translate the following MIPS assembly instructions into binary code. a) add $t0, $t1,$t2 b) addi $s0, $s1, #20 c) lw $t2, 64($t0) d) sw $s0, 80($t0) Note: $t0 - $t2 are registers 8-10, $s0 and $s1 are registers 16 and 17. You can find the opcode and function code information from lecture notes or online MIPS manual.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
please provide detailed explination not only answers.

Transcribed Image Text:1) Translate the following MIPS assembly instructions into binary code.
a) add $t0, $t1, $12
b) addi $s0, $s1, #20
c) lw $t2, 64($t0)
d) sw $s0, 80($t0)
Note: $t0 - $12 are registers 8-10, $s0 and $s1 are registers 16 and 17. You can find the opcode
and function code information from lecture notes or online MIPS manual.
2) Translate the following RISC-V assembly instructions into binary code.
a) add x5, x6, x7
b) addi x8, x9, 20
c) lw x7, 64(x5)
d) sw x8, 80(x5)
Note: You can find the opcode and function code information from lecture notes or online
RISC-V manual. The opcode for "addi" is 19, and its function code is 0.
Expert Solution

Step 1
- According to the question, we have to convert MIPS assembly instruction into binary code.
- In step 2, we will convert MIPS assembly instruction into binary code.
- Let's start with step 2.
- Note: According to the Bartleby criteria, we have to answer only First question in the given questions. So we will answer - 1 question part a, b, c and d .
Step by step
Solved in 2 steps

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education