Question: Problem 2 ( 5 points ) : PALINDROME Write an assembly program that detects palindrome. A palindrome is a word, phrase, or sequence that reads

Problem 2(5 points): PALINDROME
Write an assembly program that detects palindrome. A palindrome is a word, phrase,
or sequence that reads the same backward as forward. For example, "madam" or
"1234321" are palindromes, "12345" is not.
Requirements:
1. You may use the concepts of conditional branch, loop. and push /pop [stack] from
our class discussion.
2. You may use the program for reversing string as a hint.
3. Input: Take input string from console using Irvine library.
4. Output: If the input string is a palindrome, you should print Palindrome.
Otherwise, print not a Palindrome. For comparison, you can use je (jump if equal)
and sub instructions.

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 Programming Questions!