Question: QUESTION 2 (50 marks) rintable determin alindrome Semb string ett case the lette the string are the eft to right as from right to left,

 QUESTION 2 (50 marks) rintable determin alindrome Semb string ett case

QUESTION 2 (50 marks) rintable determin alindrome Semb string ett case the lette the string are the eft to right as from right to left, case insensitive) or not. If palindrome, vou should store 1 in r0, if Your code should be highly optimized. Use as few instructions as possible (as little as 21 assembly instructions only NOT including any assembly directives or data definitions)!! ou store 2 in r0 Ignore all characters that are not letters. You should also treat capital and small letters the same, i.e., case insensitive. For example, "madam "deleveled", "Noon", "He lived as a devil, eh?", and "Was it a car or a cat I saw?" are palindrome strings. However, "madam, Iam Adam." is not a palindrome string A string can have even or odd number of characters and must end with character Ox00 (i.e., the ASCII code of the null character) Define in your assembly program the string as follow: STRING DCB "He lived as a devil, eh?" string EoS DCB 0x00 end of string Copyright O 2019 Mahmoud El-Sakka

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!