Copy_a_String_Backwards Write an assembly program that copies a string from source to target, reversing the character order in the process. A little challenging while more efficient is in-place...



Please do it in assembly language and follow the instructions to get the same output as in the screenshot





Copy_a_String_Backwards<br>Write an assembly program that copies a string from source to target, reversing the<br>character order in the process. A little challenging while more efficient is in-place<br>reversing a string: Using xchg. Your algorithm can be like this:<br>Point ESI to the end of the source string<br>Point EDI to the beginning of the target string<br>Initialize the loop counter ECX and start a loop<br>o Get a character from source<br>Store it in the target<br>Update ESI and EDI<br>Call WriteString to output the two strings similar to this:<br>

Extracted text: Copy_a_String_Backwards Write an assembly program that copies a string from source to target, reversing the character order in the process. A little challenging while more efficient is in-place reversing a string: Using xchg. Your algorithm can be like this: Point ESI to the end of the source string Point EDI to the beginning of the target string Initialize the loop counter ECX and start a loop o Get a character from source Store it in the target Update ESI and EDI Call WriteString to output the two strings similar to this:
>>> Please select from the menu:<br>1. Copy a string backwards<br>2. Return the current original string<br>3. Exit<br>Enter your choice: 1<br>Please enter a string: I am happy<br>The reversed string: yppah ma I<br>>> Please select from the menu:<br>1. Copy a string backwards<br>2. Return the current original string<br>3. Exit<br>

Extracted text: >>> Please select from the menu: 1. Copy a string backwards 2. Return the current original string 3. Exit Enter your choice: 1 Please enter a string: I am happy The reversed string: yppah ma I >> Please select from the menu: 1. Copy a string backwards 2. Return the current original string 3. Exit

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here