The following tasks lead to the development of a single assembly language program with three functions....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
The following tasks lead to the development of a single assembly language program with three functions. Work on the tasks in numerical order, only proceeding when the previous task is complete and accurate. 1. Convert the program written for problem 1 from Homework 6 into a function. The dividend is to be passed to the function in R1 (not initialized in the function) and the divisor in R2 (not initialized in the function). The quotient is to be returned in R0. The remainder may be ignored. 2. Write an assembly language program to read a list of charges from a recent trip to the grocery store into memory. The list of charges is itemized in a file named Hw7.txt. An example of the format of the list is shown below. $17.31, $00.99, $03.98, $36.42 The address of the Ascii filename is to be passed to the function in R1 (again, not initialized in the function) and the address of where the file contents should be written to in memory in R2 (yup, this should also not be initialized in the function). You may assume that the file contains no more than 100 characters. 3. Write an assembly language function to convert an Ascii number of the following format into the binary equivalent representing the equivalent number of pennies. For example, the cost shown below is equivalent to 1099 pennies, (44B)16 or (10001001011) 2. $10.99 4. Write an assembly language program to process a list of charges from a recent trip to the grocery store. The program should read the charges from a file using the function written for problem 2. Each charge should be converted to its binary equivalent using the function written in problem 3. The program should also calculate the subtotal of all charges, the appropriate California state tax (based on the current California state tax of 7.25%) using the function written in problem 1, and the final total. The subtotal, tax and final total are to be written to the standard output with informative text. The following tasks lead to the development of a single assembly language program with three functions. Work on the tasks in numerical order, only proceeding when the previous task is complete and accurate. 1. Convert the program written for problem 1 from Homework 6 into a function. The dividend is to be passed to the function in R1 (not initialized in the function) and the divisor in R2 (not initialized in the function). The quotient is to be returned in R0. The remainder may be ignored. 2. Write an assembly language program to read a list of charges from a recent trip to the grocery store into memory. The list of charges is itemized in a file named Hw7.txt. An example of the format of the list is shown below. $17.31, $00.99, $03.98, $36.42 The address of the Ascii filename is to be passed to the function in R1 (again, not initialized in the function) and the address of where the file contents should be written to in memory in R2 (yup, this should also not be initialized in the function). You may assume that the file contains no more than 100 characters. 3. Write an assembly language function to convert an Ascii number of the following format into the binary equivalent representing the equivalent number of pennies. For example, the cost shown below is equivalent to 1099 pennies, (44B)16 or (10001001011) 2. $10.99 4. Write an assembly language program to process a list of charges from a recent trip to the grocery store. The program should read the charges from a file using the function written for problem 2. Each charge should be converted to its binary equivalent using the function written in problem 3. The program should also calculate the subtotal of all charges, the appropriate California state tax (based on the current California state tax of 7.25%) using the function written in problem 1, and the final total. The subtotal, tax and final total are to be written to the standard output with informative text.
Expert Answer:
Answer rating: 100% (QA)
To complete the tasks we need to write assembly language code for each task Heres a possible solutio... View the full answer
Related Book For
Auditing and Assurance services an integrated approach
ISBN: 978-0132575959
14th Edition
Authors: Alvin a. arens, Randal j. elder, Mark s. Beasley
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
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...
-
At December 31, 2018, Landy Products has cash of $24,000, receivables of $18,000, and inventory of $80,000. The companys equipment totals $182,000. Landy owes accounts payable of $22,000 and...
-
Identify a company-either a publicly-traded company whose recent newsworthy stories have gained your attention or your own organization -that is in need of advice for how their HR professionals might...
-
Using the diagram shown in figure 20.13, derive the time dilation formula. The steps are: a. From the symmetry of the diagram, we assume that the total time measured by the Earth observer is twice...
-
Identify the most appropriate approach and then design. Provide a rationale as to why this approach and design would be most appropriate. Develop a hypothetical research scenario that would...
-
The accountant of Weatherspoon Shoe Co. has compiled the following information from the companys records as a basis for an income statement for the year ended December 31, 2012. Rent revenue $ 29,000...
-
3. (L)Explain the four terms in the equation below, and why this equation has to be true by definition. Explain the assumption that allows us to use this equation to determine the agricultural...
-
From an economic perspective, what do you see happening in the world today?
-
1. what are capital budgeting decisions and their function? 2. What is a cash budget and its function?
-
List, in descending order of importance, the factors you believe account for the high turnover rates experienced by major accounting firms among their professional employees. What measures can those...
-
a) Your company has just exported crude palm oil to a Japanese customer. You will receive 30 million yen in 90 days. Do you have any exposure? Suppose forward, futures and options were available on...
-
You are going to pay off a car loan with payments of $500 every quarter for the first year and $1,000 every quarter during the second and third years. The return-guarantee investment account from...
-
Melissa Cutt is thinking about buying some shares of EZLawn Equipment, at $40.68 per share. She expects the price of the stock to rise to $44.22 over the next 3 years. During that time she also...
-
Problem. Find All us and forces in the elements using 1) Direct Method and 2) Minimum Total Potential Energy method 20N/mm 40N/mm 10N/mm N, N1 www N3 ww N4 www 200N N5 1 800N 30N/mm
-
TRUE OR FALSE: 1. Banks with a significantly large share of fixed-interest rate home loans are less exposed to interest rate risks. 2. Although Australian banks are pretty big, they are not...
-
The following items were discovered during the December 31, 2011 audit of the financial statements of Westmoreland Corporation: 1. The company's financial statements did not include an accrual for...
-
Multiple Choice Questions The following questions concern types of audit tests. Choose the best response. a. The auditor looks for an indication on duplicate sales invoices to see whether the...
-
Many auditors assert that certain audit tests can be significantly reduced for clients with adequate perpetual records that include both unit and cost data. What are the most important tests of the...
-
Using an economic balance sheet, which of the Laws current financial assets is most concerning from an asset allocation perspective? A. Equities B. Real estate C. Fixed income Raye uses a costbenefit...
-
Using the economic balance sheet approach, the Laws economic net worth is closest to: A. $925,000. B. $1,425,000. C. $1,675,000. Raye uses a costbenefit approach to rebalancing and recommends that...
-
Raye believes the previous advisers asset class specifications for equity and derivatives are inappropriate given that, for purposes of asset allocation, asset classes should be: A. diversifying. B....
Study smarter with the SolutionInn App