Question: MASM Assembly Write an assembly program that does the following: Prompts the user to enter the number of rows R and read it. Prompts the

MASM Assembly

Write an assembly program that does the following:

Prompts the user to enter the number of rows R and read it.

Prompts the user to enter the number of columns C and read it.

Prompts the user to enter a two-dimensional array of RxC unsigned integers. Elements of a single row should be separated by a single space and each row is read in a new line.

Print the entered array in a new line printing also its entered dimensions.

Prompts the user to enter a row number

Print the selected row.

Print the sum of the elements of the selected row.

Note: Do not use multiplication instructions in your solution.

A sample execution of the program is shown below:

Enter number of rows in the array: 3

Enter number of columns in the array: 5

Enter the array:

0 1 2 3 4

5 6 7 8 9

0 1 2 3 4

The entered 3x5 array is:

0 1 2 3 4

5 6 7 8 9

0 1 2 3 4

Enter a row number: 1

The elements of Row 1 are: 5 6 7 8 9

The sum of Row 1 = 35

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!