Question
Q) Write an assembly language program to do the following: In a loop, ask the user if they want to test for a palindrome word
Q) Write an assembly language program to do the following:
In a loop, ask the user if they want to test for a palindrome word (y/n)
If the answer is 'y', ask the user to input a string; echo the string back out
As on the exam, call a function pal to determine
whether or not the string represents a single-word palindrome,
and print the answer. Now repeat the loop.
Test the program with these strings:
rotator
racecar
abboubba
kayak
rear
noon
anna
BOOK NAME: Assembly language and Computer Architecture using C++ and Java by Anthony J. Dos Reis
Program should be written in H1 assembly language.
source file should be with .mas extension. for eg: file.mas, spam.mas
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started