Question: ASSEMBLY LANGUAGE 8086- 32 BITS You are to create an array to hold 10 numbers. The user will input 10 random grades in to the

ASSEMBLY LANGUAGE 8086- 32 BITS
You are to create an array to hold 10 numbers.
The user will input 10 random grades in to the array from ranges 1-100.
Your program then should call a Procedure which will go through all the elements of the array and find the
Largest number.
You should then call another procedure which will go through all the elements of the array and find the
Smallest number.
Finally, call a procedure which will calculate the average.
Display the information neatly on the screen including the results. It is not 32 bits
I do not want the answer from this picture. It is not 8086 masm 32 bits assembly language
 ASSEMBLY LANGUAGE 8086- 32 BITS You are to create an array

CODE: LXI 2050 assigns 20 to H and 50 to L MOV C, M copies content of memory (specified by HL register pair) to C (this is used as a counter) DCR C decrements value of C by 1 INX H increases value of HL by 1. This is done to visit next memory location MOV A, M copies content of memory (specified by HL register pair) to A INX H increases value of HL by 1. This is done to visit next memory location CMP M compares A and M by subtracting M from A. Carry flag and sign flag becomes set if A-M is negative JNC 200D jumps program counter to 200D if carry flag = 0 MOV A, M copies content of memory (specified by HL register pair) to A DCR C decrements value of C by 1 JNZ 2007 jumps program counter to 2007 if zero flag = 0 STA 3050 stores value of A at 3050 memory location HLT stops executing the program and halts any further executio

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