Question: Write an assembly program which is able to get a text input and find the characters that the indices in the given text and alphabet

Write an assembly program which is able to get a text input and find the characters that the indices in the given text and alphabet match. (You can use English alphabet). Program must be able to run infinitely until user enters EXIT as input. For example, for the given text ANTHEM, the result is A, E > 2:

A index in text:1, index in alphabet:1 match

N index in text:2, index in alphabet:14 no match

T index in text:3, index in alphabet:20 no match

H index in text:4, index in alphabet:8 no match

E index in text:5, index in alphabet:5 match

M index in text:6, index in alphabet:13 no match

1. Get a text as an input using Emulator Screen. The program must only accept capital letters. The program must check whether the entered character is a capital letter and if it is not, it can be neither processed nor printed. For example, if user enters C1E?N+G then the program must not print 1, ?, + and print only CENG. 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 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 Emulator Screen and waits for the new text until the new text is EXIT.

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