X86 Assembly Question: Reversing a String Using the Stack
STACK:
Problem 2: Write and run a program to reverse the string "aName" into "nlocniL maharbA" using the stack. Do not use a loop instruction; create your own while loop.
; Reversing a String
(RevStr.asm)
.386
.model flat, stdcall
.stack 4096
ExitProcess PROTO, dwExitCode:DWORD
1) Copy and paste the value of the ESP to the address bar in the Memory Window and trace the values pushed and popped into/from the STACK
2) Show the value of "aName" after you get out of the while loop
.data
aName BYTE "Abraham Lincoln", 0
nameSize = ($ - aName) - 1