Question: Write a program with a loop and indirect addressing that copies a string from source to target, reversing the character order in the process. Use

Write a program with a loop and indirect addressing that copies a string from source to target, reversing the character order in the process. Use the following variables: source BYTE "This is the source string",0 target BYTE SIZEOF source DUP('#')

Make the source string the phrase I am CPEN 3710 student John Doe.,0 (note: replace the John Doe portion with your own name) and reserve sufficient space for the target string, which will be the original string written backwards. (The null byte containing zero at the end of the string is not part of the reversal; it should still be at the end, not the beginning, of the reversed string.) After you have finished reverse-copying the string, in addition to calling DumpMem to display the area of memory containing the two strings, also call Irvines WriteString procedure (see page 169) twice, to display the original string and the reversed string to the screen as characters. Assemble and link your program as usual, run it, and capture and print out a screen shot showing the displayed results.

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!