Question: solve this using Assembly language for 8086 microprocessor for example- ##Take user Input in an array and show output in assembly language emu8086## INCLUDE 'EMU8086.INC'

solve this using Assembly language for 8086 microprocessor
for example-
##Take user Input in an array and show output in assembly language emu8086##
INCLUDE 'EMU8086.INC' ;include an assembly library .MODEL SMALL .STACK 100h .DATA ARR DB 50 DUP(?) ; declare array with null value initially
.CODE MAIN PROC MOV AX,@DATA MOV DS,AX XOR BX,BX XOR CX,CX PRINT "How many number you want to store(1-9): " MOV AH,1 INT 21H AND AL,0FH ;convert from ascii value to real value MOV CL,AL MOV BL,AL MOV SI,0 PRINTN PRINT "Enter values(without press enter or space): " PRINTN INPUT: INT 21H MOV ARR[SI],AL INC SI LOOP INPUT PRINTN PRINT "OUTPUT: " PRINTN MOV CX,BX MOV SI,0 MOV AH,2 OUTPUT: MOV DL,ARR[SI] INT 21h INC SI LOOP OUTPUT MAIN ENDP END MAIN
Create an array of size 20. Now populate the array by taking single character inputs from the user. You are to print only the unique characters of this array but in reverse order. Sample Input 01: AAAABBBBBCCCCCCDDDDD Sample Output 01: DCBA Sample Input 02: DDDDDCCCCCCBBBBBAAAA Sample Output 02: ABCD
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
