Question: Create and run an assembly language program with a loop that will take exactly n/10 of a second to run, where n is an integer

Create and run an assembly language program with a loop that will take exactly n/10 of a second to run, where n is an integer less than 100 the user enters. This program will use Windows input and output capability. At the beginning of your program, use Windows I/O to ask the user for a number between 1 and 100 (inclusive). Load this value into the ecx register; think of it as the variable n. The rest of the main loop in your program should take as close to n/10 of a second as you can manage.

Hints:

1. You need to use Iteration in your program.

3. it is fair to do some time-consuming math operations in your loop to kill time.

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!