For my Computer Organization and Assembly Language Class Code needs to be in .asm format please In the lecture material

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

For my Computer Organization and Assembly Language Class Code needs to be in .asm format please In the lecture material

Post by answerhappygod »

For my Computer Organization and Assembly Language ClassCode needs to be in .asm format please
In the lecture material you will find code that shows how to usedirect addressing to fill and print an array. You will probablywant to leverage some of this code for this lab.
Create an array of 25 DWORD types. Define each element of thearray as being undefined. Write code to fill the array with valuesin the range of 0 - 100. Once you have the array filled print itout to the screen using direct addressing.
Once the loop is printed out write code that will search thearray and find the smallest value within the array. You will wantto create a variable to hold the smallest value. Set this variableto undefined initially.
You are not to use any .IF .ELSE, .WHILE, or .ENDW instructions.You are to use pure old fashion assembly language to solvethis.
You are also required to comment every line of code you write.Failure to do so will drop you grade 20%
Your program should function like the following:
66171655559931030316751430276932305247221171965817108222913892644687983635378125929036553634808352944875814699543863227641782290442874939772153576422673465618256862432943843168978199661118772The smallest number in the array is 2Press any key to close this window . . .
Note that since these numbers have been generated randomly youroutput will probably not match the image above but it should be thesame as far as functionality goes.
Also note that you cannot store data like this
Variables to indexed arrays is not allowed. You must use aregister. Something like this
Please NOTE:
Not putting comments in assembly language source code inunacceptable. You are required to comment each line of code youwrite. Failure to do so will result in a 20% reduction in yourgrade.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply