Question: Write an ARM assembly language program to determine whether a string of characters with an odd length is a palindrome (for example, mom) under the
Write an ARM assembly language program to determine whether a string of characters with an odd length is a palindrome (for example, mom) under the following constraints.
a. The string of ASIC-encoded characters is stored in memory.
b. At the start of the program, register rl contains the address of the first character in the string, and r2 contains the address of the last character. On exit from the program, register r0 contains a 0 if the string is not a palindrome, and 1 if it is.
Step by Step Solution
3.49 Rating (166 Votes )
There are 3 Steps involved in it
If the palindrome has an odd number of characters all we have to do is to examine th... View full answer
Get step-by-step solutions from verified subject matter experts
