If I push a whole bunch of strings to the stack ,how do I acess them using esp? You all showed me how to do this with numbers, but how do I do it with strings?

push str1
push str2
push str3

How do I acess str1 using esp?
Posted on 2003-04-26 16:42:04 by CyberGuy
Usually, you push the pointers to the strings, not the strings themselves.
Posted on 2003-04-26 19:37:27 by El_Choni
push	str1

push str2
push str3
mov eax, [esp+00h] ; eax = str3
mov ecx, [esp+04h] ; ecx = str2
mov edx, [esp+08h] ; edx = str1
Posted on 2003-04-26 20:07:19 by comrade
Thanks :alright:
Posted on 2003-04-27 16:59:44 by CyberGuy