## Program to calculate (x-10)*3/(y+20) ## ## Register use: $8 $9 $11 $12 ## ## ## y quotient ## remainder text •globl main main: ori $8, $0, 40 # put x into $8 # put y into $9 # put 3 into $10 # compute (x-10) and put the result into $11 # compute (x-10)*3 # put the product into $11 # compute (y+20) and put the result into $12 # compute (x-10)*3/(y+20) # put the quotient into $11 # put the remainder into $12 (x=40) (y=10) 10 3 addiu $11 $11 $12 ## end of file
## Program to calculate (x-10)*3/(y+20) ## ## Register use: $8 $9 $11 $12 ## ## ## y quotient ## remainder text •globl main main: ori $8, $0, 40 # put x into $8 # put y into $9 # put 3 into $10 # compute (x-10) and put the result into $11 # compute (x-10)*3 # put the product into $11 # compute (y+20) and put the result into $12 # compute (x-10)*3/(y+20) # put the quotient into $11 # put the remainder into $12 (x=40) (y=10) 10 3 addiu $11 $11 $12 ## end of file
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
Assembly Language Please
Please complete the given assembly program to evaluate the formula (x10)*3/(y+20) when x=40 and y=10.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
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