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
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.
