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 inxbit 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 :
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 soft?wa:re then the program must not print : and print only software When the Enter key is pressed, the program must get the printed text as input and start processing.
When the program gets the input from the user, it must check each character if the required match occurs and store the matched characters.
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 h
MOV DI
MOV CX
MOV DX OFFSET MSG
MOV AH
INT H
GETWORD:
MOV AH
INT H
CMP ALDH
JE PRINT
MOV AHEH
INT H
MOV ARRDIAL
INC DI
INC CX
JMP GETWORD
PRINT:
MOV DX OFFSET MSGPRINT
MOV AH
INT H
MOV DI
LOOP:
MOV AL ARRDI
MOV AHEH
INT H
MOV AL
MOV AHEH
INT H
INC DI
Loop LOOP:
ret
ARR DB DUP
MSG DB "ENTER INPUT:$
MSGPRINT DB $
NEWLINE DB $
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
