I am currently working on Visual C++ and I have a problem with lea.
My code is the following :
char * txt = (char *) malloc(19);
__asm {
    lea eax, [ text ]
    xor ebx, ebx
    mov [eax + ebx], '3'
}
When I run it, I have the following values after the lea instruction :
name :       value :
 text         0x00346550
 eax          0x0012fe78
I would have liked eax to have the same value as text to insert elements.
Thank you for your answers. =)