The document contains instructions for three programs to operate on an array of data stored starting at location ARRAY. The first program counts the number of occurrences of the element in CODE1 and stores the result in RESULT. The second program finds the maximum number in the array and stores it in MAX and its address in MAXADDR. The third program arranges the array in ascending order and stores the second largest number in SECMAX.
The document contains instructions for three programs to operate on an array of data stored starting at location ARRAY. The first program counts the number of occurrences of the element in CODE1 and stores the result in RESULT. The second program finds the maximum number in the array and stores it in MAX and its address in MAXADDR. The third program arranges the array in ascending order and stores the second largest number in SECMAX.
The document contains instructions for three programs to operate on an array of data stored starting at location ARRAY. The first program counts the number of occurrences of the element in CODE1 and stores the result in RESULT. The second program finds the maximum number in the array and stores it in MAX and its address in MAXADDR. The third program arranges the array in ascending order and stores the second largest number in SECMAX.
An array of data is stored in data segment starting at
ARRAY. The number of elements in the array is stored in location COUNT. Write a program to count the number of occurrences of the element in CODE1 in the ARRAY and store this result in location RESULT.
An array of data is stored in data segment starting from
ARRAY. The number of elements in the array is stored in location COUNT. Write an ALP to find the maximum number and the displacement at which it is stored. The number must be stored in memory location MAX and the address of the number in memory location MAXADDR
An array of data is stored in data segment starting from
ARRAY. The number of elements in the array is stored in location COUNT. Write an ALP to arrange these number in the ascending order. Also store the value of the second largest number in the array in location SECMAX