28 Sep Write an assembly program that counts the number of digits and uppercase characters in the given string
Write an assembly program that counts the number of digits and uppercase characters in the given string. Write the number of digits and uppercase characters into P1OUT and P2OUT respectively. Assume that a string does not include more than one line. Assuming the input string is “Welcome MSP430 Assembly!”, then the correct results for testing purpose are shown below (in decimal):
Total Number of Uppercase Characters (P1OUT): 5
Total Number of Digits (P2OUT): 3
2. Write an assembly program that will update an input string. Each lowercase letter in the input string should be replaced by the corresponding uppercase letter. Assume that a string does not include more than one line. Count the number of changes and put the output in port P3 output register. Assume the input string is “Welcome to MSP430 Assembly!” then
the correct results for testing purpose are shown below:
Updated string: “WELCOME TO MSP430 ASSEMBLY!”
Total Number of Changes (P3OUT): 15
3. (Bonus) Write an assembly program that will create a new string by deleting the special characters from the original input string. Assume that a string does not include more than one line. Count the number of deleted special characters, and put this in the port P4 output register. Assuming the input string is “Welcome To MSP430 Assembly:)!”, then the correct
results for testing purpose are shown below:
New string: “WelcomeToMSP430Assembly”
Total Number of Deleted Special Characters (P4OUT): 6
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.