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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started