Download the skeleton program simplearithmetic2.asm from our cour site (look in the Modules section) and take a look at it. supposed to implement the arithmetic function: 2*a+b 16*c - 60, where: a = -5, b= 12, c = 5. e to ensure that variables a, b, c, MUST be stored in registers $t0, $t1, $t2, vely, and that the result MUST be stored in register $t3. ion, the multiplication factors MUST ONLY be implemented by using bit-sh use either addi or li to assign value to registers. Write down for tunol the missing codo horo after you've verified it by

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
icon
Related questions
Question
Download the skeleton program simplearithmetic2.asm from our course
Canvas site (look in the Modules section) and take a look at it.
You are supposed to implement the arithmetic function:
2*a+b 16*c - 60, where: a = -
You have to ensure that variables a, b, c, MUST be stored in registers $t0, $t1, $t2,
respectively, and that the result MUST be stored in register $t3.
In addition, the multiplication factors MUST ONLY be implemented by using bit-shift left.
You can use either addi or li to assign value to registers.
-5, b=12, c = 5.
a) Write down (or type) the missing code here after you've verified it by running it
on spim.
b) Write down (or type) exactly what you see printed out on your display after you
run this. Is it what you expected? Why?
c).
. In hexadecimal format, what is the value stored in register $t3 at the conclusion
of this program? Explain how you got to thi. answer.
Transcribed Image Text:Download the skeleton program simplearithmetic2.asm from our course Canvas site (look in the Modules section) and take a look at it. You are supposed to implement the arithmetic function: 2*a+b 16*c - 60, where: a = - You have to ensure that variables a, b, c, MUST be stored in registers $t0, $t1, $t2, respectively, and that the result MUST be stored in register $t3. In addition, the multiplication factors MUST ONLY be implemented by using bit-shift left. You can use either addi or li to assign value to registers. -5, b=12, c = 5. a) Write down (or type) the missing code here after you've verified it by running it on spim. b) Write down (or type) exactly what you see printed out on your display after you run this. Is it what you expected? Why? c). . In hexadecimal format, what is the value stored in register $t3 at the conclusion of this program? Explain how you got to thi. answer.
1
HNm tin có
2
3
4
5
6
7
8
9
10
11
DAHHHH998
12
13
14
15
16
17
18
19
20
.text
main:
# TODO: implement the arithmetic function: 2*a + b 16*c 60, where a = -5, b = 12, c = 5.
Variables a, b, c, MUST be stored in registers $t0, $t1, $t2, respectively.
The result MUST be stored in register $t3.
ADDITIONALLY: The multiplication factors MUST ONLY be implemented by using bit-shift left.
# # # =
#
ASM simplearithmetic2.asm
# DO NOT MODIFY THE FOLLOWING INSTRUCTIONS!
# Print to std.output
li $v0, 1
move $a0, $t3
syscall
# End program
li $v0, 10
syscall
Transcribed Image Text:1 HNm tin có 2 3 4 5 6 7 8 9 10 11 DAHHHH998 12 13 14 15 16 17 18 19 20 .text main: # TODO: implement the arithmetic function: 2*a + b 16*c 60, where a = -5, b = 12, c = 5. Variables a, b, c, MUST be stored in registers $t0, $t1, $t2, respectively. The result MUST be stored in register $t3. ADDITIONALLY: The multiplication factors MUST ONLY be implemented by using bit-shift left. # # # = # ASM simplearithmetic2.asm # DO NOT MODIFY THE FOLLOWING INSTRUCTIONS! # Print to std.output li $v0, 1 move $a0, $t3 syscall # End program li $v0, 10 syscall
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Computational Systems
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education