Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write an assembly 8086(x86) program which is able to get a text input and find the characters that the indices in the given text and

image text in transcribed

Write an assembly 8086(x86) 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? +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". Example

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Objects And Databases International Symposium Sophia Antipolis France June 13 2000 Revised Papers Lncs 1944

Authors: Klaus R. Dittrich ,Giovanna Guerrini ,Isabella Merlo ,Marta Oliva ,M. Elena Rodriguez

2001st Edition

ISBN: 3540416641, 978-3540416647

More Books

Students also viewed these Databases questions