Question: This is valid assembly code to copy a string from a source to a target. How can I copy the string in reverse order, so

 This is valid assembly code to copy a string from a

This is valid assembly code to copy a string from a source to a target. How can I copy the string in reverse order, so that target contains 'gnirts ecruos eht si siht"?

.data source BYTE "This is the source string",0 target BYTE SIZEOF source DUP (e) code main proC mov esi, offset source mov edi, offset target mov ecx, SIZEOF source mov al, [esi] mov al, [esi] mov [edi], al add esi, TYPE source add edi, TYPE targe oop L1 invoke ExitProcess,e main endp end main .data source BYTE "This is the source string",0 target BYTE SIZEOF source DUP (e) code main proC mov esi, offset source mov edi, offset target mov ecx, SIZEOF source mov al, [esi] mov al, [esi] mov [edi], al add esi, TYPE source add edi, TYPE targe oop L1 invoke ExitProcess,e main endp end main

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!