|
本帖最后由 sjf7758 于 2011-12-8 11:47 编辑
.版本
.支持库 TianSin
.子程序 寻路CALL
.参数 X坐标, 文本型
.参数 Y坐标, 文本型, , 16进制
.参数 Z坐标, 文本型, , 16进制
.局部变量 AsmBin, 字节集 )
AsmBin = AsmBin + assem (“mov edi,[0114c194]”)
AsmBin = AsmBin + assem (“add edi,668”)
AsmBin = AsmBin + assem (“mov eax,0”)
AsmBin = AsmBin + assem (“mov [edi+44],eax”)
AsmBin = AsmBin + assem (“mov edx,[00F2D240]”)
AsmBin = AsmBin + assem (“mov edx,[edx+7c]”)
AsmBin = AsmBin + assem (“mov word ptr ds:[edi+c],dx”)
AsmBin = AsmBin + assem (“mov ecx,” + X坐标)
AsmBin = AsmBin + assem (“mov [edi+10],ecx”)
AsmBin = AsmBin + assem (“mov edx,” + Z坐标)
AsmBin = AsmBin + assem (“mov [edi+14],edx”)
AsmBin = AsmBin + assem (“mov ecx,” + Y坐标)
AsmBin = AsmBin + assem (“push eax”)
AsmBin = AsmBin + assem (“mov ecx,edi”)
AsmBin = AsmBin + assem (“mov byte ptr ds:[edi+1c],1”)
AsmBin = AsmBin + assem (“mov [edi+20],eax”)
AsmBin = AsmBin + assem (“mov ebx,00A3A5D0”)
AsmBin = AsmBin + assem (“call ebx”)
AsmBin = AsmBin + assem (“retn”)
调用函数 (AsmBin)
这个call怎么用一般的模块写我不会写帮帮我 |
|