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 RO The final count value in RO must be stored in memory location "StrSize" "Strlocation" and "StrSize" are memory addresses and thus pointers to memory locations for data storage. StrSize DCD Ox00000000 strLocation DCB "String wil1 go here ",0x00 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 RO The final count value in RO must be stored in memory location "StrSize" "Strlocation" and "StrSize" are memory addresses and thus pointers to memory locations for data storage. StrSize DCD Ox00000000 strLocation DCB "String wil1 go here ",0x00
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
