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.

Parents
  • Who gave you this assignment ?

    Anyway, you can find the Cortex-M3 instruction set at the ARM infocenter.

    The instruction set explains itself, but if there are any instructions you do not understand, please use "Ask a question" on this site (in the "Processors Place"), and we'll be happy to answer it.

Reply
  • Who gave you this assignment ?

    Anyway, you can find the Cortex-M3 instruction set at the ARM infocenter.

    The instruction set explains itself, but if there are any instructions you do not understand, please use "Ask a question" on this site (in the "Processors Place"), and we'll be happy to answer it.

Children
No data