冰楓論壇
標題:
TwMS 209.1 ICS 人物左右走
[打印本頁]
作者:
yuan950555
時間:
2018-8-1 10:27
標題:
TwMS 209.1 ICS 人物左右走
本帖最後由 yuan950555 於 2018-8-1 10:46 編輯
//TwMS 209.1 ICS 人物左右走
[ENABLE]
Alloc(AutoLRICSEntry, 64)
Label(ICSReturn)
RegisterSymbol(AutoLRMain)
Alloc(AutoLRMain, 128)
Label(GoLeft)
Label(GoRight)
RegisterSymbol(AutoLRRange)
Alloc(AutoLRRange, 4)
Alloc(AutoLRValue, 4)
//-----------------------------------------------
AutoLRRange:
DD A //距離 16進制 A=10
//-----------------------------------------------
AutoLRICSEntry:
Cmp [Esp], 0096E9AF
Jne ICSReturn
Mov [Esp], AutoLRMain
ICSReturn:
Jmp GetFocus
//-------------------
AutoLRMain:
Cmp [AutoLRRange], 0
Je 0096E9AF
Push Eax
Inc [AutoLRValue]
Mov Eax, [AutoLRRange]
Cmp Eax, [AutoLRValue]
Jge GoLeft
Add Eax, [AutoLRRange]
Cmp Eax, [AutoLRValue]
Jge GoRight
Mov [AutoLRValue], 1
Jmp GoLeft
GoLeft:
Mov [Ebp-1C], FFFFFFFF
Pop Eax
Jmp 0096F1F7
GoRight:
Mov [Ebp-1C], 00000001
Pop Eax
Jmp 0096F1F7
//-----------------------------------------------
039458C0: //c8 ?? ?? ?? f6 9b ?? ?? ?? ?? d2 ?? ?? 96 d1 77 ?? 89 ?? 77 ?? e8 ?? ?? ?? ??
DD AutoLRICSEntry
[DISABLE]
039458C0:
DD GetFocus
Dealloc(AutoLRICSEntry)
UnregisterSymbol(AutoLRMain)
Dealloc(AutoLRMain)
UnregisterSymbol(AutoLRRange)
Dealloc(AutoLRRange)
Dealloc(AutoLRValue)
//紅點採用這篇:
https://bingfong.com/forum.php?mo
... peid=17%26typeid=17
歡迎光臨 冰楓論壇 (https://bingfong.com/)
Powered by 冰楓