solve the image using Assembly language for 8086 microprocessor please solve it in this method for example- ##Take user Input in an array and show output in assembly language emu8086##

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 17RQ
icon
Related questions
Question
100%

solve the image using Assembly language for 8086 microprocessor

please solve it in this method 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:
AAAABBBBBCCCCCCCDDDDD
Sample Output 01:
DCBA
Sample Input 02:
DDDDDCCCCCСВВВВBAAAA
Sample Output 02:
АBCD
Transcribed Image Text: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: AAAABBBBBCCCCCCCDDDDD Sample Output 01: DCBA Sample Input 02: DDDDDCCCCCСВВВВBAAAA Sample Output 02: АBCD
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Arrays
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning