Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ESTION 2 (50 marks left to right as from right to left, case insensitive) or not. If palindrome, you should store 1 in r0. if

image text in transcribed

ESTION 2 (50 marks left to right as from right to left, case insensitive) or not. If palindrome, you should store 1 in r0. if not, you store 2 in r0 Your code should be highly optimized. Use as few instructions as possible (as little as 21 assembly instructions onl NOT including any assembly directives or data definitions)!! leasn:assembly instructions only 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, I am 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?" Eos DCB 0x00 ; string end of string ESTION 2 (50 marks left to right as from right to left, case insensitive) or not. If palindrome, you should store 1 in r0. if not, you store 2 in r0 Your code should be highly optimized. Use as few instructions as possible (as little as 21 assembly instructions onl NOT including any assembly directives or data definitions)!! leasn:assembly instructions only 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, I am 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?" Eos DCB 0x00 ; string end of string

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

7. What decisions would you make as the city manager?

Answered: 1 week ago

Question

8. How would you explain your decisions to the city council?

Answered: 1 week ago