64,281
社区成员
发帖
与我相关
我的任务
分享
(*strDest++ = * strSrc++) != '\0';
0098139C mov eax,dword ptr [strDest] ;eax= strdest
0098139F mov ecx,dword ptr [strSrc] ;ecx = strsrc
009813A2 mov dl,byte ptr [ecx] ;dl = *strsrc
009813A4 mov byte ptr [eax],dl ;*strdest = dl
009813A6 mov eax,dword ptr [strDest] ;eax = strdest
009813A9 add eax,1 ;eax++
009813AC mov dword ptr [strDest],eax ;strDest = eax
009813AF mov ecx,dword ptr [strSrc] ;ecx = strSrc
009813B2 add ecx,1 ;ecx++
009813B5 mov dword ptr [strSrc],ecx ;strSrc = ecx
vs2008下编译,反汇编了下,证实了如一楼所说