I have a null-terminated string, with a pointer to the first element in eax . I found the position to which you want to trim the string from the end. A pointer to this position is stored in ebx . It is necessary for the string to continue from eax to ebx , and not from eax to the null terminator. How do I write a \0 character in ebx ?
I also tried this:
mov edi, ebx mov esi, eax add esi, dword ptr [esp + 16] ; в esp + 16 у меня длина строки movsb But still the length of the string has not changed.
mov byte ptr [ebx], 0? - Mike