Assembly info: Using Visual Studio 2010 to write inline assembly embedded into C
Hello, I am trying to write into an array of chars in C and trying to mimic the action of this C code:
resNum[posNum3] = currNum3 + '0';
currently this is what i have:
mov ebx, posNum3; mov resNum[ebx], edx; //edx is currNum3 add resNum[ebx], 48; // add 48 because thats the value of the char '0'
I also tried doing this:
mov ebx, posNum3; mov eax, resNum[ebx] ;// eax points to the beggining of the string mov eax, edx; // = currnum3 add eax, 48; // + '0'
No luck with any of this, help is more than appreciated!