סתם כי שיעמם לי
void str_invert(char src[],char *dest) { __asm { xor ecx,ecx mov esi,src getl: cmp byte ptr [esi+ecx],0h je endlen inc ecx jmp getl endlen: mov edi,dest push ecx invs: lodsb mov byte ptr [edi+ecx-1],al loop invs nextw: xor edx,edx xor ecx,ecx push edi nxtc: dec byte ptr [esp+4h] jz ends cmp byte ptr [edi+ecx+1],20h jbe endw inc ecx inc edx jmp nxtc endw: mov al,byte ptr [edi] mov ah,byte ptr [edi+ecx] mov byte ptr [edi+ecx],al mov byte ptr [edi],ah inc edi sub ecx,2h cmp ecx,1h js ergg jae endw ergg: pop edi add edi,2h add edi,edx jmp nextw ends: add esp,8h } }