Question
Write an ARM assembly language program to count the number of characters in a string. Assume the following items regarding this program: -The string is
Write an ARM assembly language program to count the number of characters in a string. Assume the following items regarding this program:
-The string is located at memory location StrLocation.
The string consists of 8-bit ASCII characters. The string is terminated by a NULL character (which has all 8-bits zero).
The program has to work for any string ASCII at the StrLocation. The final count of the characters in the string should be in R0.
The final count value in R0 must be stored in memory location StrSize.
StrLocation and StrSize are memory addresses and thus pointers to memory locations for data storage.
StrSize DCD 0x00000000
StrLocation DCB String will go here ,0x00
SUBJECT: Microprocessor
NOTE: Please write the ARM language and also screenshot the output for me.Thanks
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started