A. Write a program in Assembly language that reads the numbers from memory (num: 10, 6,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
A. Write a program in Assembly language that reads the numbers from memory (num: 10, 6, 14, 3, 5, 15, 2, 8, 12, 9, 13, 4, 7, and 11) and perform following operation on them: 3. Separate the odd numbers and store the result (odd numbers) in consecutive memory locations in an array (dw) named 'odd'. 4. Find the minimum of the numbers from odd array and store in array(dw) named 'min '. 5. Find the factorial of minimum number calculated in step 2 and store the factorial in the memory (array name 'fact') at the end. There should be separate subroutine for each mentioned task like odd, min and fact. A. Write a program in Assembly language that reads the numbers from memory (num: 10, 6, 14, 3, 5, 15, 2, 8, 12, 9, 13, 4, 7, and 11) and perform following operation on them: 3. Separate the odd numbers and store the result (odd numbers) in consecutive memory locations in an array (dw) named 'odd'. 4. Find the minimum of the numbers from odd array and store in array(dw) named 'min '. 5. Find the factorial of minimum number calculated in step 2 and store the factorial in the memory (array name 'fact') at the end. There should be separate subroutine for each mentioned task like odd, min and fact.
Expert Answer:
Answer rating: 100% (QA)
Answer Heres an example program in x86 Assembly language NASM syntax that performs the specified operations section data num dw 10 6 14 3 5 15 2 8 12 ... View the full answer
Related Book For
Quantitative Methods for Business
ISBN: 978-0324651751
11th Edition
Authors: David Anderson, Dennis Sweeney, Thomas Williams, Jeffrey cam
Posted Date:
Students also viewed these programming questions
-
Randy's Restaurant Company (RRC) entered into the following transactions during a recent year. April 1 Purchased equipment (a new walk-in cooler) for $8,800 by paying $2,900 cash and signing a $5,900...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
Find the exponential function f(x) = Ca which satisfies the following conditions: 1 f(2) = and f(-1) = 16 16 f(x)=2.51984(0.15849)^x
-
Remove left recursion in the following grammar. Show each step. Hint: First remove direct left recursion. Then the indirect left recursion. A AB | Aab | BA| a Bb | | b
-
Michelle and Ken Dunn, both in their mid-20s, have been married for 4 years and have two preschool-age children. Ken has an accounting degree and is employed as a cost accountant at an annual salary...
-
In the system in the figure, the valve at C is gradually opened in such a way that a constant rate of increase in discharge is produced. How would you classify the flow at B while the valve is being...
-
Prepare the current assets section of the balance sheet as of December 31,2010, for Lipton, Inc., using the following information: Accounts Receivable. Petty Cash.. Cash in Bank Accounts Inventory......
-
Gifford, Lawrence, and Ma share equally in net income and net losses. After the partnership sells all assets for cash, divides the losses on realization, and pays the liabilities, the balances in the...
-
At the beginning of Year 2, Oak Consulting had the following normal balances in its accounts: Account Cash Balance Accounts receivable Accounts payable Common stock Retained earnings $ 33,200 21,200...
-
For each information request below, formulate a single SQL query to produce the required information. In each case, you should display only the columns requested. Be sure that your queries do not...
-
After seeing a newly-constructed home listed by Walter Skinner of I want to believe Realty, Dana Scully desperately wanted to purchase it. She reached out to her dear friend, Fox Moulder, who was...
-
Comparative financial statement data for Carmono Company follow: Assets Cash This Year Last Year $ 8.00 $ 15.00 Accounts receivable Inventory Total current assets Property, plant, and equipment Less...
-
2. You are working in the information technology department of a financial institute. You are required to develop a Java Program to assist the customer service department to provide good quality of...
-
Multiply the radicals and simplify. Line -8 (3+ 5)
-
This is a major ethical dilemma, in which AI systems may not be able to provide a truly neutral and fair system, thereby raising ethical concerns. If artificial intelligence tools are going to be...
-
The COVID-19 pandemic has adversely affected the lives of people around the world in millions of ways. Due to this severe epidemic, all countries in the world have been affected by all aspects,...
-
Suppose you have calculated the value of the risks for your insurance company. What is the required risk based capital for your insurance company? CO=50,000 C1CS=45,000 C10-350,000 C2=440,000...
-
Determine by direct integration the values of x for the two volumes obtained by passing a vertical cutting plane through the given shape of Fig. 5.21. The cutting plane is parallel to the base of the...
-
Using the data obtained in Problem 16, construct a portfolio from Apple, AMD, and Oracle that matches the Information Technology S&P index as closely as possible. Use the return data for the...
-
AHarris Interactive survey for InterContinental Hotels & Resorts asked respondents, When traveling internationally, do you generally venture out on your own to experience culture or stick with your...
-
Romans Food Market, located in Saratoga, New York, carries a variety of specialty foods from around the world. Two of the stores leading products use the Romans Food Market name: Romans Regular...
-
The standard enthalpy change of combustion of acetylene is \(-1300.48 \mathrm{~kJ}\) at \(298 \mathrm{~K}\) with \(\mathrm{H}_{2} \mathrm{O}\) in the liquid state. Calculate the standard enthalpy of...
-
Which instrument is used to determine the heat of combustion of a fuel?
-
A piston-cylinder device contains \(1.2 \mathrm{~kg}\) of saturated water vapour at \(180^{\circ} \mathrm{C}\). Heat is transferred to steam. As a result, steam expands reversibly to a final pressure...
Study smarter with the SolutionInn App