1. A string is stored in the memory at location string. Write an ARM assembly la
ID: 3890689 • Letter: 1
Question
1. A string is stored in the memory at location string. Write an ARM assembly language program in ARMSimulator to count the number of characters in the given string. The string is terminated with a 0. You can use the following assembler directive to store the string:
Use R0 to store the result.
2. Modify the program written in Problem 1 to count the number of times a particular character appears in the string. The character is stored in the memory after the “string” as follows:
Use R1 to store the result.
Explanation / Answer
1. To count the number of characters in the given string
2. To count the number of times a particular character appears in the string
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.