Question: 1 . Declare three arrays that will contain integers. Arrays one and two will be initialized in the code. The values of arrays will contain

1. Declare three arrays that will contain integers. Arrays one and two will be initialized in the code. The values of arrays will contain integers such that when array elements are added the results are positive, zero and negative.
2. Array three will be calculated to be equal to the Array one[i]+ Array two[i] and must be performed using a for loop construct and auto-indexing.
3. The program is to print a welcome message with instructions to the user.
4. The program is to print the elements of all three arrays with text on which array is being printed.
5. The array print must be performed by a subroutine and accessed by using the ARM Assembly instruction BL. The starting address of the array to be printed will be passed into the subroutine. The address may be passed via a register or the stack via the PUSH and POP commands. Since this print subroutine is not a leaf routine code must be in place to properly save and restore the link register (r14).
6. The array sizes have to be 10 elements.
7. The user will be prompted to enter a positive, negative or zero. The software will then print only the numbers of that type (positive, negative, zero) from array three. The software must use a for loop and auto-indexing to access the array elements.
8. Assume all inputs are valid and no overflow conditions will occur.

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!