Question: A palindrome is a string which reads the same backward and forward. Examples are: madam, racecar, Anna... Write an assembly program to check whether
A palindrome is a string which reads the same backward and forward. Examples are: madam, racecar, Anna... Write an assembly program to check whether a string is a palindrome. The test string is all- lowercase and is stored in a byte array terminated by '\0'. If the string is palindrome, your program should exit with 1 stored in eax. Otherwise 0. Use the following design (subject string in strArr): Find last index of strArr in End i Start i=0 WHILE (Start i < End i) ELSE END IF IF (strArr[Start_i] != strArr [End i]) BREAK WHILE Start i++ vissers End i sean END WHILE IF (Start i < End i) NOT Palindrome -- www IS Palindrome Activate Go to Settin
Step by Step Solution
There are 3 Steps involved in it
Certainly Heres an assembly program that checks whether a string is a palindrome The program follows the provided design and terminates with 1 stored ... View full answer
Get step-by-step solutions from verified subject matter experts
