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 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
Get step-by-step solutions from verified subject matter experts
