Question: Write a portable procedure that outputs to the console window all of the characters that are between two given characters (as determined by ASCII code).

Write a portable procedure that outputs to the console window all of the characters that are between two given characters (as determined by ASCII code). Pass the two characters to the procedure as parameters in AL and BL. Hint: Inside the procedure, use the loop instruction, setting ECX equal to one more than the difference in ASCII values. Sample Run: Enter first character: g Enter last character: m ghijklm Enter first character: X Enter last character: d XYZ[\\]^_'abcd 3. (StringSuffix) Write a portable procedure that produces the suffix of a given string with a given number of characters, i.e., a new string consisting of the last n characters of the original string (plus a null byte), stored in memory. So, you will need to pass the offsets of the existing string and buffer, the number of characters in the string, and the number of characters in the suffix. Implement the procedure from the main part of your program, using data from the user. Sample Run: Please enter the string: quentin tarantino How many letters in the suffix? 4 Your suffix is: tino




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