Question: Write an assembly program on the 8 0 8 6 instructions set. And using the string instructions to carry on the following task ( s

Write an assembly program on the 8086 instructions set. And using the string instructions to carry on the following task(s):
The program should declare an array string and variable as:
String1 db I like Assembly and Microprocessors but Marwan
Ans db ?
The program should then copy the string to ES: DI (04000:0D10), then find how many times the letter a or A appears in the string and store the result in Ans.
The program should use two subroutines, the first to copy the string from string1 to ES:DI. The second is to count the number of times the string contains the upper or lower case of the letter A.Write an assembly program on the 8086 instructions set. And using the string instructions to carry on the following task(s):
The program should declare an array string and variable as:
String1 db I like Assembly and Microprocessors but Marwan
Ans db ?
The program should then copy the string to ES: DI (04000:0D10), then find how many times the letter a or A appears in the string and store the result in Ans.
The program should use two subroutines, the first to copy the string from string1 to ES:DI. The second is to count the number of times the string contains the upper or lower case of the letter A.

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!