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
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.
Array three will be calculated to be equal to the Array onei Array twoi and must be performed using a for loop construct and autoindexing.
The program is to print a welcome message with instructions to the user.
The program is to print the elements of all three arrays with text on which array is being printed.
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 r
The array sizes have to be elements.
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 autoindexing to access the array elements.
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
