Question: Write a MIPS assembly program that checks to see if a string is a palindrome (palindrome wiki: http://en.wikipedia.org/wiki/Palindrome). The string can be stored in the

 Write a MIPS assembly program that checks to see if a

Write a MIPS assembly program that checks to see if a string is a palindrome (palindrome wiki: http://en.wikipedia.org/wiki/Palindrome). The string can be stored in the static data area of your main, and is passed from main to 2 functions. The first function named string_length determines the string's length. Then the string and the string length are passed to a function named palindrome. which returns a true or false indication of whether the string is a palindrome. The program should print out an indication of whether the stored string is a palindrome. Provide examples that show both cases. Allow your program to handle blanks and mixed case in the input, ignoring them, and still finding a palindrome. For example, "A daffodil slid off Ada" is an example of a palindrome if you ignore spaces and letter case. Verify it can run with MARS

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!