Question: Can you make this answer in an asm code answer? Please make sure to use ASML.lib.inc and the codes that are for it . You

Can you make this answer in an asm code answer? Please make sure to use ASML.lib.inc and the codes that are for it.You will find code in the lecture material that shows how to use direct addressing to fill and print an array. You should leverage some of this code for this lab.
Create an array of DWORD types that is 25elements long. Define each element of the array as being undefined. Write code to fill the array with values in the range of 1-100.Once you have the array filled, ask the user to input a divisor, then loop through the array and print out all of the numbers that are NOTevenly divisible by the divisor that was input by the user.
You are not to use any .IF .ELSE, .WHILE, or .ENDW or .REPEAT instructions. You are to use pure old-fashioned assembly language to solve this.
You are also required to comment every line of code you write. Failure to do so will drop your grade 20%
Your program should function like the following:
Enter a divisor
5
Here are the numbers that are NOT evenly divisible by 5
66
17
16
99
3
31
6
14
27
69
32
52
47
22
11
71
96
Press any key to close this window ...
Note that since these numbers have been generated randomly, your output may not match the image above, but it should be the same as far as functionality goes.
NOT Allowed
The use of legacy directives like DB and DW is not allowed in this class. A deduction of 40%will be given if you use them.
The use of indirect addressing around variables is NOT allowed in the class unless you are using indirect addressing. An example of this would be [val1].Doing this will result in a 25%reduction in your grade.
Please NOTE:
Not putting comments in assembly language source code is unacceptable. You are required to comment each line of code you write. Failure to do so will result in a 20%reduction in your grade.

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 Programming Questions!