Question: Microprocessor 8086 emulator program : 5- Write an assembly program that reads two strings from a user. The program should print the number of letters,
5- Write an assembly program that reads two strings from a user. The program should print the number of letters, in binary, that are in the string that comes alphabetically first. A string is said to come alphabetically first with respect to another string if the first letter they differ in comes first in the alphabet. You may ignore edge cases. To make this clearer, consider the two strings below Str1: This is an example of a string Str2: This is an example of something else The first letter that they differ in is highlighted in red. Since "a" comes before "s" in the alphabet, Str1 is said to come alphabetically before Str2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
