Question: Problem 3 : Write an ARMv 7 assembly program that reverses a given list of integer value which terminates with 0 . Requirements: 1 .

Problem 3: Write an ARMv7 assembly program that reverses a given list of integer value which terminates with 0.
Requirements:
1. Assume the input list is stored in memory, starting at a label called `input_list`.
2. The list is terminated by 0 at the end.
3. The program must reverse the list in memory (e.g.,1,2,3,4,5,0 will become \(5,4,3,2,1,0\))
4. Use a loop and LDR/STR command to accomplish the reversal.
5. Assume the only zero value will be end of this list
Example:
Define the list in the memory like this: input_list dcd 1,2,3,4,5,6,7,0
After this line the memory should look something like this:
Extra Credit Assignment
After reversing this above list the memory should something like below:
Here you can see that the list list is now reserved in the same memory location for the input_list.
Hints:
- Use a register to point to the start of the string.
- Use another register to find the end of the string by searching for the 0.
- Swap characters from the start and end of the string until they meet in the middle.
- Ensure your program exits cleanly after completing the reversal.
Problem 3 : Write an ARMv 7 assembly program that

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!