本帖最后由 happy886rr 于 2017-6-16 22:50 编辑
回复 21# bailong360
用着很多github的开源工具, 写的东西不开源,不像github的风格。
capix最后的汇编可以整合为一个 | double callAPI(void *hProc, int *arr, int len, int callMODE, BOOL retMODE) | | { | | int retINT; | | double retLLF; | | | | __asm | | { | | mov ebx, dword ptr [arr] ; | | mov ecx, dword ptr [len] ; | | dec ecx ; | | | | LOOP1: | | mov eax, dword ptr [ebx] ; | | sub ebx, 4 ; | | push eax ; | | dec ecx ; | | | | jns LOOP1 ; | | | | call dword ptr [hProc] ; | | fstp retLLF; | | mov retINT, eax ; | | | | mov ebx, dword ptr [len] ; | | SHL ebx, 2 ; | | cmp callMODE, 0 | | je LOOP2 | | add esp, ebx | | LOOP2: | | xor eax, eax ; | | } | | return (retMODE)?retINT:retLLF; | | }COPY |
|