Question: 2 : 4 6 4 Write ARM Assembly language Show screen shot of the output program that scans a null - terminated string and creates
:
Write ARM Assembly language
Show screen shot of the output
program that scans a nullterminated string and creates a copy where a supplied keyword is replaced by another one the equivalent to a findandreplace function in text editors
Requirements:
The code has to be organized using one or more functions.
Use a stack to pass to the function doing the work all are nullterminated strings
a the address of the source string, should be in ROM
b the address of the modified string should be in RAM, following the stack
c the address of the word to be replaced should be in ROM
d the replacement word should be in ROM
The functions should preserve the values of the registers they modify during their execution.
You can assume for simplicity that the strings are casesensitive so "the" is not the same as "The".
For example, if
sourcestring"world of warcraft"
fromstring"war"
and
tostring"star"
then the outcome of your code should be a block of memory holding:
"world of starcraft"
You must write the ARM assembly language code and verify your code with Keil microvision simulation tool. Show the values stored in memory and the registers by the end of your program.
Code efficiency is based on how dense your code by reducing number of loops or improving it with the use of condition code.
use KielVision
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
