TA的每日心情 | 开心 2024-12-9 18:45 |
---|
签到天数: 124 天 [LV.7]常住居民III
|
欢迎您注册加入!这里有您将更精采!
您需要 登录 才可以下载或查看,没有账号?注册
x
#游戏汇编分析:
坐标保存在一个b表中,表的首地址及坐标数量则保存在另外一个a表中
把a表里每个b表中的坐标绘制出来 - 00503F6D . 8B40 04 mov eax, dword ptr [eax+4]
- 00503F70 . 897424 18 mov dword ptr [esp+18], esi
- 00503F74 . 8B90 90000000 mov edx, dword ptr [eax+90]
- 00503F7A . 8B87 B4010000 mov eax, dword ptr [edi+1B4] //绘图数据表个数总
- 00503F80 . 3BC6 cmp eax, esi
- 00503F82 . 895424 14 mov dword ptr [esp+14], edx
- 00503F86 . 0F8E E3000000 jle 0050406F
- 00503F8C > 8B87 A8010000 mov eax, dword ptr [edi+1A8] //绘图数据表首地址,循环开始
- 00503F92 . 8B4406 0C mov eax, dword ptr [esi+eax+C] //单个表坐标总数
- 00503F96 . 8D0C40 lea ecx, dword ptr [eax+eax*2]
- 00503F99 . C1E1 02 shl ecx, 2
- 00503F9C . 51 push ecx
- 00503F9D . E8 CE0D2000 call 00704D70
- 00503FA2 . 8B97 A8010000 mov edx, dword ptr [edi+1A8]
- 00503FA8 . 8BE8 mov ebp, eax
- 00503FAA . 8B4416 0C mov eax, dword ptr [esi+edx+C]
- 00503FAE . C1E0 02 shl eax, 2
- 00503FB1 . 50 push eax
- 00503FB2 . E8 B90D2000 call 00704D70
- 00503FB7 . 8B8F A8010000 mov ecx, dword ptr [edi+1A8]
- 00503FBD . 8BD8 mov ebx, eax
- 00503FBF . 83C4 08 add esp, 8
- 00503FC2 . 33C0 xor eax, eax
- 00503FC4 . 8B540E 0C mov edx, dword ptr [esi+ecx+C]
- 00503FC8 . 85D2 test edx, edx
- 00503FCA . 7E 5D jle short 00504029
- 00503FCC . 8D55 08 lea edx, dword ptr [ebp+8]
- 00503FCF > 8B0C0E mov ecx, dword ptr [esi+ecx]
- 00503FD2 . DB04C1 fild dword ptr [ecx+eax*8] //X =(float)X
- 00503FD5 . D84C24 10 fmul dword ptr [esp+10] //X = X * 0.78125
- 00503FD9 . DA4424 38 fiadd dword ptr [esp+38] //X = X + 401
- 00503FDD . D95A F8 fstp dword ptr [edx-8]
- 00503FE0 . 8B8F A8010000 mov ecx, dword ptr [edi+1A8]
- 00503FE6 . 8B0C0E mov ecx, dword ptr [esi+ecx]
- 00503FE9 . DB44C1 04 fild dword ptr [ecx+eax*8+4] //Y的输入,步骤同X
- 00503FED . D84C24 10 fmul dword ptr [esp+10]
- 00503FF1 . DA4424 3C fiadd dword ptr [esp+3C]
- 00503FF5 . C702 00000000 mov dword ptr [edx], 0
- 00503FFB . D95A FC fstp dword ptr [edx-4]
- 00503FFE . 8B8F A8010000 mov ecx, dword ptr [edi+1A8]
- 00504004 . 8B4C0E 0C mov ecx, dword ptr [esi+ecx+C]
- 00504008 . 49 dec ecx
- 00504009 . 3BC1 cmp eax, ecx
- 0050400B . 7D 0C jge short 00504019
- 0050400D . 8D48 01 lea ecx, dword ptr [eax+1]
- 00504010 . 66:890483 mov word ptr [ebx+eax*4], ax
- 00504014 . 66:894C83 02 mov word ptr [ebx+eax*4+2], cx
- 00504019 > 8B8F A8010000 mov ecx, dword ptr [edi+1A8]
- 0050401F . 40 inc eax
- 00504020 . 83C2 0C add edx, 0C
- 00504023 . 3B440E 0C cmp eax, dword ptr [esi+ecx+C] //判断是否继续循环
- 00504027 .^ 7C A6 jl short 00503FCF
复制代码#提取程序源码: |
|