Question: Assembly (MASM), using irvine32.inc, write a program that would build a two-dimensional array using the inputs from the user and find the sum of a
Assembly (MASM), using irvine32.inc, write a program that would build a two-dimensional array using the inputs from the user and find the sum of a selected row.
The program must do the following:
Ask the user to enter how many elements the array has. The maxSize is 40.
Ask the user to enter how many elements in each row in the array.
Ask the user what type the array is. It could be a byte, word or dword array.
Ask the user to enter the elements of the array.
Ask the user for the row index and display the sum of the selected row.
Your program must have a procedure that calculates the sum of one row in the two-dimensional array of bytes, words, or doublewords.
For the parameters and the return value use the stack.
sample run: Enter how many elements in your array: 6 Enter the row size: 2 Enter the type of your array. 1 for byte. 2 for word. 4 for doubleword. 1 Enter an element in your array, 1 Enter an element in your array, 2 Enter an element in your array, 3 Enter an element in your array, 4 Enter an element in your array, 5 Enter an element in your array, 6 Enter row number that you want me to sum: 0 The sum is: 00000003 Press any key to continue . . .
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
