Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A string is an array representing a sequence of characters. To store a string of n characters in your program, you need to set aside

image text in transcribed

A string is an array representing a sequence of characters. To store a string of n characters in your program, you need to set aside n+1 bytes of memory. This allocated memory will contain the characters in the string, plus one extra special character-the null character-to mark the end of the string. The null character is a byte whose bits are all zeros (0x00). The actual string consists of any group of characters, which none of them can be the null character. Draw a detailed flowchart and write an ARM assembly language program to copy a null terminated STRING1 to a null terminated STRING2. after removing any occurrences of the word "the" in STRINGI. ?.?., if STRING! ?s "the woman and The man said the" then STRING2 would becomewoman and The man said However, if STRING! ?s "and they took breathe" then sTRING2 would become "and they took breathe" without any changei you ctions as possible (as littlc as 30 assembly instructions onlya can assume that STRING2 will be less than 255 characters Your code should be highly optimized. Use as few instructions as possible (as little as 30 assembly instructions only NOT including assembly directives or data definitions)!!. Define the data of this program in a separate DATA area. Define the strings as follow: STRING1 DCB "and the man said they must go" Eos STRING2 space OxFF ;Stringl end of stringl : iust allocating 255 bytes DCB 0x00 More test cases " the thethe 123 II TI the " ? 123 ''the'' "The '' "them ? ? '' '' ''The '' the the 1 " ? "them thel" A string is an array representing a sequence of characters. To store a string of n characters in your program, you need to set aside n+1 bytes of memory. This allocated memory will contain the characters in the string, plus one extra special character-the null character-to mark the end of the string. The null character is a byte whose bits are all zeros (0x00). The actual string consists of any group of characters, which none of them can be the null character. Draw a detailed flowchart and write an ARM assembly language program to copy a null terminated STRING1 to a null terminated STRING2. after removing any occurrences of the word "the" in STRINGI. ?.?., if STRING! ?s "the woman and The man said the" then STRING2 would becomewoman and The man said However, if STRING! ?s "and they took breathe" then sTRING2 would become "and they took breathe" without any changei you ctions as possible (as littlc as 30 assembly instructions onlya can assume that STRING2 will be less than 255 characters Your code should be highly optimized. Use as few instructions as possible (as little as 30 assembly instructions only NOT including assembly directives or data definitions)!!. Define the data of this program in a separate DATA area. Define the strings as follow: STRING1 DCB "and the man said they must go" Eos STRING2 space OxFF ;Stringl end of stringl : iust allocating 255 bytes DCB 0x00 More test cases " the thethe 123 II TI the " ? 123 ''the'' "The '' "them ? ? '' '' ''The '' the the 1 " ? "them thel

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_2

Step: 3

blur-text-image_3

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

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

2nd Edition

1597499471, 978-1597499477

More Books

Students also viewed these Databases questions

Question

Ensure continued excellence in people management.

Answered: 1 week ago

Question

Enhance the international team by recruiting the best people.

Answered: 1 week ago