. 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
-
According to Fire in a Canebrake, the following factors contributed to the lynching of African-Americans EXCEPT: the disfranchisement of African Americans lack of federal anti-lynching laws...
-
What to do: Download Quiz2.java program. The program prompt user to input an Based on the value of n, the program displays one of the following m In is divisible by only 3 In is divisible by only 7...
-
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...
-
Selling price Variable costs: Direct materials Direct labour Variable manufacturing overhead Total variable cost Contribution margin Contribution margin ratio Contribution margin per labour hour O...
-
In 1990, the amount of earnings required to earn one Social Security credit was $520. In the tax year 1990, Maggie earned $187 biweekly. How many Social Security credits did she earn in 1990?
-
Consider the following set of hypothetical data: Suppose you want to do a multiple regression of Y on X2 and X3. a. Can you estimate the parameters of this model? Why or why not? b. If not, which...
-
Why are the audits of most of the largest global companies done by the Big Five auditing firms?
-
Zocco Corporation has an inventory conversion period of 75 days, an average collection period of 38 days, and a payables deferral period of 30 days. a. What is the length of the cash conversion cycle...
-
A company had a before tax profit of $2,500,000- what was their after tax PROFIT. Tax Rate 30 O 2,500,000 $1,650,000 $850,000 $625,000
-
How many cycles are required for the pipelined MIPS processor to issue all of the instructions for the program in Exercise 7.23? What is the CPI of the processor on this program?? Data from Problem...
-
How is probability used in the medical field to assess risk? Provide at least two examples in your response.
-
1- Calculate the fugacities and activities of the water at the following states: a. T = 300C X = 0.0 b. T= 300C T = 300C T = 300C T = 300C C. d. e. x = 0.5 x = 1.0 P = 50.0 kPa P = 0.8 MPa
-
Do Good Inc. owns and operates a church in West Palm Beach, Florida. The church is called the Do Good Church; and the year is 2022. Do Good is in the midst of a multi-year redevelopment project in...
-
Find CUBE roots of -27i. The first cube root: The second cube root: The third cube root: +
-
Beth would like to include technology in a secure area of her data center to protect against unwanted electromagnetic emanations. What technology would assist her with this goal?
-
I affirm that I have not given or received any unauthorized help and that all work submitted is my own. I have abided by Seneca's Academic Integrity Policyand I understand that any violation of...
-
https://youtu.be/L_aiqSRL-j8 this is a link for making assignment please make it till 5 pm nothing is missing. Assignment 1 Print Settings Add dates and restrictions... 1. Comprehend the importance...
-
(a) What is the focal length of a magnifying glass that gives an angular magnification of 8.0 when the image is at infinity? (b) How far must the object be from the lens?
-
Multiple Choice Questions The following questions concern internal controls in the acquisition and payment cycle. Choose the best response. a. Which of the following controls will most likely justify...
-
Describe what is meant by acceptable audit risk. Explain why each of the following statements is true: Required a. A CPA firm should attempt to achieve the same audit risk for all audit clients when...
-
In an annual audit at December 31, 2011, you find the following transactions near the closing date: 1. Merchandise costing $1,822 was received on January 3, 2012, and the related acquisition invoice...
-
What weakness is inherent in the accounting rate of return when it is used as an investment criterion?
-
Identify several nonquantitative factors that are apt to play a decisive role in the final selection of projects for capital expenditures.
-
In what way does depreciation affect the analysis of cash flows for a proposed capital expenditure?
Study smarter with the SolutionInn App