Question: Write an X86-series assembly language program that reads a string from the user and stores it in the data segment. Prompt the user for input,

Write an X86-series assembly language program that reads a string from the user and stores it in the data segment. Prompt the user for input, and then respond by echoing the string, returning the number of characters entered, and printing back the second to last character. You may assume the user will enter a string of 2-9 characters(dont forget about the carriage return).

Sample Execution: A sample execution of the program looks like the following.

Enter a string (between 2-9 char.):

0123569

0123569 You entered 7 characters.

The second last character you entered was 6.

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!