Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

COSC 2372 Computer Oranization and Assmbly language 2. Please complete the given assembly program (AS-Q2.asm) to evaluate the formula x/3+y*20-100 when x=15 and y-23. (50

COSC 2372 Computer Oranization and Assmbly language image text in transcribed
image text in transcribed
2. Please complete the given assembly program (AS-Q2.asm) to evaluate the formula x/3+y*20-100 when x=15 and y-23. (50 points) ## ## Assignment 5 Question 2 # Program to calculate X/3+y*20-100 ## Register use: ## $8 X ## $9 y ## $12 result .text globl main main: ori $8, $e, 15 23 # put x=15 into $8 # put y=23 into $9 # put 3 into $10 # compute x/3 and put the result into $11 # put the quotient into $11 # put 20 into $10 # compute y*20 # put the product into $12 # compute x/3+y*20 and put the result into $12 # compute x/3+y*20-100 and put the result into $12 $10 $11 ori $9, $10 $12 addu $12, $12, - 2e - 100 ## end of file

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Select Healthcare Classification Systems And Databases

Authors: Katherine S. Rowell, Ann Cutrell

1st Edition

0615909760, 978-0615909769

More Books

Students also viewed these Databases questions

Question

1. Identify what positions are included in the plan.

Answered: 1 week ago

Question

2. Identify the employees who are included in the plan.

Answered: 1 week ago

Question

7. Discuss the implications of a skill-based pay plan for training.

Answered: 1 week ago