. Implement two Simple 8-bit Assembly Language programs that convert an input string to lowercase, left-...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
. Implement two Simple 8-bit Assembly Language programs that convert an input string to lowercase, left- justified in the Output. We use the Simple 8-bit Assembler Simulator The programs must use a loop. The programs should work for any given input string of length 0 to 24. The original input string must not be modified. Incremental development is strongly encouraged. Java/Python Style String . Use Java/Python-style string without a null byte at the end. The length of the string must be calculated via assembly programming. Loop index must sequence from 0 to input string length [for i in O..stringLength-1] C Style String Use C-style string with a null byte at the end. Do not use the input string length in your program. . Example string "{Simple 8-bit Assembly}" Submit both a high-level language solution and a Simple 8-bit Assembly Language solution for each program. Q3. (25 points) The agriculture department tells the grower that the height of a plant he is plans to grow follows this equation. height = 2* time + fertilizer the height is in inches the time is in months the fertilizer in in ounces Write an ARM assembly language program to calculate the expected height of the plant for any length of time and fertilizer application. You are guaranteed that time and fertilizer values will never be negative. The final height should be in register RO. Assume that the time will be in R1 and fertilizer will be in R2. You may use other registers (except R13-R5) if you need for your program. Although the program should be able to calculate height for any values of time and fertilizer, to test the program you may use time=36 and fertilizer=8. Write an ARM assembly language program on the next page. The program structure and syntax must be correct, and ready to be executed on Keil. . Implement two Simple 8-bit Assembly Language programs that convert an input string to lowercase, left- justified in the Output. We use the Simple 8-bit Assembler Simulator The programs must use a loop. The programs should work for any given input string of length 0 to 24. The original input string must not be modified. Incremental development is strongly encouraged. Java/Python Style String . Use Java/Python-style string without a null byte at the end. The length of the string must be calculated via assembly programming. Loop index must sequence from 0 to input string length [for i in O..stringLength-1] C Style String Use C-style string with a null byte at the end. Do not use the input string length in your program. . Example string "{Simple 8-bit Assembly}" Submit both a high-level language solution and a Simple 8-bit Assembly Language solution for each program. Q3. (25 points) The agriculture department tells the grower that the height of a plant he is plans to grow follows this equation. height = 2* time + fertilizer the height is in inches the time is in months the fertilizer in in ounces Write an ARM assembly language program to calculate the expected height of the plant for any length of time and fertilizer application. You are guaranteed that time and fertilizer values will never be negative. The final height should be in register RO. Assume that the time will be in R1 and fertilizer will be in R2. You may use other registers (except R13-R5) if you need for your program. Although the program should be able to calculate height for any values of time and fertilizer, to test the program you may use time=36 and fertilizer=8. Write an ARM assembly language program on the next page. The program structure and syntax must be correct, and ready to be executed on Keil.
Expert 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 computer network questions
-
answer the question clearly You are building a flight-control system for which a convincing safety case must be made. Would you assign the tasks of safety requirements engineering, test case...
-
Determine the breakeven point for each plant. Hambry Enterprises produces a component for recycling uranium used as a nuclear fuel in power plant generators in France and the United States. Use the...
-
The drawing shows a top view of two circular coils of conducting wire lying on a flat surface. The centers of the coils coincide. In the larger coil there are a switch and a battery. The smaller coil...
-
Two boys were unattended by their father in a store. They took bicycles from the rack and rode them around in the store. One crashed and required stitches in his leg. His parents sued for premises...
-
Explain the difference between ESG reporting and traditional financial reporting.
-
Cardinals Corporation purchased a computer on December 31, 2013, for $105,000, paying $30,000 down and agreeing to pay the balance in five equal installments of $15,000 payable each December 31...
-
1. Your program asks the user how many bananas they want to buy, and what the price is. This information is then passed to getTotal to calculate the total cost. System.out.println("How many bananas...
-
The following information is available for the preparation of the governmentwide financial statements for the city of Southern Springs as of April 30, 2020: From the preceding information, prepare,...
-
Troy is a qualified radiologist who operates a successful radiology practice from purpose- built rooms attached to his house. Troy works in the practice three days a week, and the other two days he...
-
1.(4 pt) At 60F, Freon-12(dichlorodifluoromethane) has a vapor pressure of 72.4 psi (1 atm =14.7 psi). If the pressure vessel containing liquid freon-12 is opened and part of its content is poured in...
-
Annie Oakley Farm Ltd manufactures and sells lavender candles. The following data is available for preparing budgets for the first 2 quarters of 2024: 1. Sales: Quarter 1 Quarter 2 Sale Price Budget...
-
C = 200 +0.75(Y T) I 200 25r - G = T= 100 (M/P) = Y 100r . M = 1000 P= 1 1. Derive IS and LM 2. Find equilibrium (r*,Y*) Suppose government increase spending by 50, 3. Derive new IS and LM. 4....
-
Davis Co. had the following inventory activity during April: Units Unit Cost 100 $8 Beginning inventory Purchase (April 3) 60 112 12 Sale (April 10) 80 Purchase (April 18) 50 50 15 Purchase (April...
-
For calendar 2 0 2 0 , Budapest Corp. reported net income of $ 2 9 , 2 8 0 and earnings per share of $ 2 . 4 6 . There were 1 2 , 0 0 0 common shares outstanding during 2 0 2 0 . On Dec 3 1 , 2 0 2...
-
Below is the information needed to complete the special project relating to select accounting topics. No assistance should be sought from anyone except your instructor. Financial information for the...
-
Using thermodynamic data from Appendix 4, calculate G at 258C for the process: 2SO 2 (g) + O 2 (g) 88n 2SO 3 (g) where all gases are at 1.00 atm pressure. Also calculate DG8 at 258C for this same...
-
The cost accounting records are often an essential area to audit in a manufacturing or construction company. Required a. Why should the auditor review the cost accounting records and test their...
-
Distinguish between subsequent events occurring between the balance sheet date and the date of the auditor's report, and subsequent discovery of facts existing at the date of the auditor's report....
-
Multiple Choice Questions The following questions concern reports issued by auditors, other than those on historical financial statements. Choose the best response. a. An auditor is reporting on cash...
-
Suppose a species of bacteria divides once every 20 minutes. You start with a single bacterium on your unrefrigerated egg-and-baloney sandwich at 8:00 am. Show that when you sit down to lunch at...
-
If two species belong to the same order, do they have to belong to the same class? Do they have to belong to the same genus?
-
The lightest and heaviest flying birds are the bee hummingbird of Cuba, which weighs about 1.6 grams, and the great bustard of Europe and Asia, which can weigh as much as 21 kilograms. Show that the...
Study smarter with the SolutionInn App