指针的学习

xiaoxiao2021-02-28  99

pstr = str; 00BD179E mov dword ptr [pstr (0BD9010h)],offset str (0BD9000h) pstr[1] = '1'; 00BD17A8 mov eax,1 00BD17AD shl eax,0 00BD17B0 mov ecx,dword ptr [pstr (0BD9010h)] 00BD17B6 mov byte ptr [ecx+eax],31h *(pstr++) = '2'; 00BD17BA mov eax,dword ptr [pstr (0BD9010h)] 00BD17BF mov byte ptr [eax],32h 00BD17C2 mov ecx,dword ptr [pstr (0BD9010h)] 00BD17C8 add ecx,1 00BD17CB mov dword ptr [pstr (0BD9010h)],ecx *(pstr + 1) = '3'; 00BD17D1 mov eax,dword ptr [pstr (0BD9010h)] 00BD17D6 mov byte ptr [eax+1],33h printf("pstr =%s=\n", pstr); 00BD17DA mov eax,dword ptr [pstr (0BD9010h)] 00BD17DF push eax 00BD17E0 push offset string "pstr =%s=\n" (0BD7B40h) 00BD17E5 call _printf (0BD1325h) 00BD17EA add esp,8
转载请注明原文地址: https://www.6miu.com/read-42930.html

最新回复(0)