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 itYou 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 elements long. Define each element of the array as being undefined. Write code to fill the array with values in the range of 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 oldfashioned 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
Your program should function like the following:
Enter a divisor
Here are the numbers that are NOT evenly divisible by
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 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 valDoing this will result in a 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 reduction in your grade.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
