required to write an assembly program to find the maximum of an
array of integers by doing the following:
1. Prompt user to input array size n (n <= 10)
2. Prompt user to input element values of array A one by one
3. Display the result on the console.
This program must at least include one function. The main program will read the values
of the array (as user inputs the element values) and stores them in the memory (data
segments section) and at the end print the result. The function finds the maximum value
of the array.
For example, if the array size is 4 and the element values are
A = { 2 6 -1 5 },
the result is: 6
The messages showing on the console should be:
Please input the array size: 12
!!!Invalid, try again
Please input the array size: 4
Please input the element values:
2
6
-1
5
The result is:
6
engineering computer science