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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started