Question: 2 : 4 6 4 Write ARM Assembly language Show screen shot of the output program that scans a null - terminated string and creates

2:464
Write ARM Assembly language
Show screen shot of the output
program that scans a null-terminated string and creates a copy where a supplied keyword is replaced by another one (the equivalent to a find-and-replace 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 null-terminated 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 case-sensitive, so "the" is not the same as "The".
For example, if
source_string="world of warcraft"
from_string="war"
and
to_string="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 micro-vision 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
2 : 4 6 4 Write ARM Assembly language Show screen

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 Programming Questions!