Question: Write an assembly program inx 8 6 ( 1 6 - bit real mode ) that can get a text input and find the characters

Write an assembly program inx86(16-bit real mode) that can get a text input and find the characters that the indices in the given text and alphabet match. (You must use the English alphabet). The program must be able to run infinitely until the user enters close as input. For example, for the given text microcomputers, the result is c >1:
1. Get a text as an input using Emulator Screen. The program must only accept lowercase letters. The program must check whether the entered character is a lowercase and if it is not, it can be neither processed nor printed. For example, if the user enters s1oft?w+a:*+re then the program must not print 1,?,+,:,* and print only software. When the Enter key is pressed, the program must get the printed text as input and start processing.
2. When the program gets the input from the user, it must check each character if the required match occurs and store the matched characters.
3. Finally, the program prints the matched characters and the count of matched characters on the Emulator Screen and waits for the new text until the new text is close.
Demo Code: Get input as a string from the user:
org 100h
MOV DI,0
MOV CX,0
MOV DX, OFFSET MSG
MOV AH,9
INT 21H
GETWORD:
MOV AH,00
INT 16H
CMP AL,0DH
JE PRINT
MOV AH,0EH
INT 10H
MOV ARR[DI],AL
INC DI
INC CX
JMP GETWORD
PRINT:
MOV DX, OFFSET MSGPRINT
MOV AH,9
INT 21H
MOV DI,0
LOOP1:
MOV AL, ARR[DI]
MOV AH,0EH
INT 10H
MOV AL,''
MOV AH,0EH
INT 10H
INC DI
Loop LOOP1:
ret
ARR DB 26 DUP(0)
MSG DB "ENTER INPUT:$"
MSGPRINT DB "> $"
NEWLINE DB 13,10,"$"
Write an assembly program inx 8 6 ( 1 6 - bit

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