Question: MASM DOSBOX Create your first assembly language program that uses loop controls and addition to perform multiplication. Collect two digits from the user Prompt the
MASM DOSBOX
Create your first assembly language program that uses loop controls and addition to perform multiplication.
Collect two digits from the user
Prompt the user for an integer.
If a non-numeric input is entered, display an error message and end the program.
Then store the value of the integer in a variable.
Prompt the user for a second integer.
If a non-numeric input is entered, display an error message and end the program.
Then store the value of the integer in a second variable.
Use a loop to multiply the two values
Use a CX loop that will run the number of times indicated by the first user input.
Add the second value to an accumulator during each loop.
For example, if the first user entry is 8, and the second 5, then the loop will run 8 times adding 5 to the accumulator each time for a result of 40.
Display the integer as an ASCII character.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
