Question: Objective: Write MIPS program to check if an input string is a palindrome. A palindrome reads the same forwards and backwards, like: radar, racecar, noon,

Objective: Write MIPS program to check if an input string is a palindrome. A palindrome reads the same forwards and backwards, like: radar, racecar, noon, anna. Assume one continuous word, no space or punctuation.

Implement the following program in MIPS:

In the main program loop:

get a string from the user (use syscalls 4 and 8, not syscall 54)

call a function to check if the input string length is zero, in which case, exit the program

call a function to check if the string is a palindrome and print a message

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!