Question: Write an Aarch 6 4 assembly language main function that tests several. The main function will perform the following tasks: a ) Prompt the user
Write an Aarch assembly language "main" function that tests several. The main function will perform the following tasks:
a Prompt the user to enter their digit ID number. The value of is based on the ID number according to the following rule System of Equations
if ID# is even
if ID# is odd
b You will need two arrays of size orig and 'dup' Your arrays of byte integers must be allocated on the stack.
c Call the initarray function to initialize your array orig.
d Call the printarray function to print out the orig array.
e Call the copyarray function to make a copy of your array duporig.
f Call the insertionsort function to sort your dup array.
g Call the printarray function to print out your sorted dup array.
h Call the computeaverage function to compute the average of the dup array.
i Print out the average to standard output.
All the abovementioned arrays have already been created. The main function just needs to call them.
This function is part of a larger Aarch assembly language program called arrayproc.s As such, it must have the appropriate "prologue" and "epilogue" statements to keep track of the call frame. Except for loop control variables, if the function uses local variables, they must be allocated on the stack.
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
