Link to home
Start Free TrialLog in
Avatar of cplau
cplau

asked on

Palindrome?

Dear All,

Can anyone teach me how to write a 68000 assembly language programme which will check whether a string is palindrome or not?

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of vbs03
vbs03

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kenspencer
kenspencer

Hi,
vbs03 -- Just a comment.   Why bother creating a second string?  After you establish SI/DI pointing at the beginning/end of the input string then you could perform a compare and jump out of the loop on a 'not equal' condition.

Ken
Hm... sounds like homework to me (I might ofcourse be wrong).
can anyone tell me how to write a LC-3 assembly language to check whether a string is palindrome or not?