Question: Write an ARM assembly program that asks for an integer, inserts it at the front of an array of integers, outputs the extended array, and
Write an ARM assembly program that asks for an integer, inserts it at the front of an array of integers, outputs the extended array, and loops back asking for a new input. The array should be allocated in RAM but not in stack and be initially empty. The program should be terminated by entering the number hence is not allowed to be an array element The current array should be output to the screen after entering a new number.
For example, if the entered numbers are they should be allocated in the array as follows:
tableArray index,Array elem.,
The program output in this case should be as follows:
Input a number:
Array:
Input a number:
Array:
Input a number:
Array:
Your program should work for any array of size at most and have a function insertx array, n that inserts a number into an array of length Pass all the parameters to this function in stack. The numbers and should be passed by value and the array itself by reference.
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
