Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ASSEMBLY NEED ASAP WILL RATE RIGHT AWAY Currently this code successfully counts the number of lowercase characters in the hard coded string. Slightly modify the

ASSEMBLY NEED ASAP WILL RATE RIGHT AWAY image text in transcribed
Currently this code successfully counts the number of lowercase characters in the hard coded string.
Slightly modify the code so that instead, it will update the hardcoded string and replace each uppercase letter with a lowercase letter. Then have the counter count the amount of changes. The correct output should be:
Updated string: welcome to msp430 assembly!
Total Number of Changes: 5
*Please type your answer it gets hard to read handwritten code thank you!*
include "nap4 30.h" MSG4 DB 10,13, 'Total Number of Changes : ORG OFF0Oh myStr DB "Welcome to MSP430 Assembly!" string placed on the stacik : null character automatically added after ' NAME PUBLIC mainlabel visible ORG DC16 main module nane OFFFEh main : set reset vector to 'main' label CSTACK : pre-declaration of segment CODE place program in 'CODE' segnent RSEG SFE (CSTACK), SP iset up stack configure Pi.x output : load the starting address of string into R4 ; Register 5 = counter :get nev character : is it null character : if yes go to end CLR.B R5 #0, R6 lend CMP CMP.B 'a',R6 JNE INC gnext R5 if no, go to next char if yes, increnent counter :Set al1 P1 pins LPM4 lend: MOV.B R5, &P1OUT #LPM , SR BIs.w NOP END

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

How To Build A Million Dollar Database

Authors: Michelle Bergquist

1st Edition

0615246842, 978-0615246840

More Books

Students also viewed these Databases questions

Question

2. What efforts are countries making to reverse the brain drain?

Answered: 1 week ago