Question: 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

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
Get step-by-step solutions from verified subject matter experts
