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
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
Get step-by-step solutions from verified subject matter experts
