阅读:1381回复:1
ABCDEFGHJKLMNPQRSTUVWXYZ23456789这个“abcd....”我上google 搜索了一下,只找到一个日本网站〉。。。看不懂:P 下面是我从一段别人的驱动汇编翻译成c++的,最后一段是汇编的源码 BYTE byteArray[0x100]; int nCount=0; char* pChar; char pStr[]=\"ABCDEFGHJKLMNPQRSTUVWXYZ23456789\"; while(nCount<0x100) { byteArray[nCount]=0; pChar=strchr(pStr,nCount); if(pChar==NULL) { nCount++; continue; } DWORD dwTmp=(DWORD)(pChar-pStr); byteArray[nCount]=(BYTE)dwTmp; nCount++; } return ; 汇编: sub_11770 proc near ; CODE XREF: sub_10B10+2Ep .text:00011770 .text:00011770 var_pChar = dword ptr -8 .text:00011770 var_nCount = dword ptr -4 .text:00011770 .text:00011770 push ebp .text:00011771 mov ebp, esp .text:00011773 sub esp, 8 .text:00011776 mov [ebp+var_nCount], 0 .text:0001177D jmp short loc_11788 .text:0001177F ; 哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪? .text:0001177F .text:0001177F loc_1177F: ; CODE XREF: sub_11770+57j .text:0001177F mov eax, [ebp+var_nCount] .text:00011782 add eax, 1 .text:00011785 mov [ebp+var_nCount], eax .text:00011788 .text:00011788 loc_11788: ; CODE XREF: sub_11770+Dj .text:00011788 cmp [ebp+var_nCount], 100h .text:0001178F jge short loc_117C9 .text:00011791 mov ecx, [ebp+var_nCount] .text:00011794 mov byte_13DF0[ecx], 0 .text:0001179B mov edx, [ebp+var_nCount] .text:0001179E push edx .text:0001179F push offset aAbcdefghjklmnp ; \"ABCDEFGHJKLMNPQRSTUVWXYZ23456789\" .text:000117A4 call ds:strchr .text:000117AA add esp, 8 .text:000117AD mov [ebp+var_pChar], eax .text:000117B0 cmp [ebp+var_pChar], 0 .text:000117B4 jz short loc_117C7 .text:000117B6 mov eax, [ebp+var_pChar] .text:000117B9 sub eax, offset aAbcdefghjklmnp ; \"ABCDEFGHJKLMNPQRSTUVWXYZ23456789\" .text:000117BE mov ecx, [ebp+var_nCount] .text:000117C1 mov byte_13DF0[ecx], al .text:000117C7 .text:000117C7 loc_117C7: ; CODE XREF: sub_11770+44j .text:000117C7 jmp short loc_1177F .text:000117C9 ; 哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪? .text:000117C9 .text:000117C9 loc_117C9: ; CODE XREF: sub_11770+1Fj .text:000117C9 mov esp, ebp .text:000117CB pop ebp .text:000117CC retn .text:000117CC sub_11770 endp |
|
沙发#
发布于:2003-10-27 21:48
55555,没有人知道吗TvT
|
|