This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

'Sort and Count' program using Cortex-M3 Assembly (or less preferably in C language)

Construct the following null terminated string in code area (i. e. in ROM)

str         DCB       “p1er3fec6tst1r2an5ge7rs8”.0

Write an assembly program that will count and separate alphabetic and numerical values in str.Store the separated alphabets in a string named string1 and numerals in the string string2 both in data segment i.e. in RAM. The count of alphabets should be stored in string1count and string2count byte variables. Design the program so that it should work even if the contents of the string str are changed.

0