- UID
- 175467
- 帖子
- 24428
- 主題
- 1251
- 精華
- 0
- 積分
- 3000
- 楓幣
- 4231
- 威望
- 2419
- 存款
- 137915
- 贊助金額
- 1500
- 推廣
- 0
- GP
- 6036
- 閱讀權限
- 150
- 在線時間
- 4117 小時
- 註冊時間
- 2017-1-18
- 最後登入
- 2024-11-5
|
//TwMS 210.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], 0097710F
Jne ICSReturn
Mov [Esp], AutoLRMain
ICSReturn:
Jmp GetFocus
//-------------------
AutoLRMain:
Cmp [AutoLRRange], 0
Je 0097710F
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 00977957
GoRight:
Mov [Ebp-1C], 00000001
Pop Eax
Jmp 00977957
//-----------------------------------------------
03958990:
DD AutoLRICSEntry
[DISABLE]
03958990:
DD GetFocus
Dealloc(AutoLRICSEntry)
UnregisterSymbol(AutoLRMain)
Dealloc(AutoLRMain)
UnregisterSymbol(AutoLRRange)
Dealloc(AutoLRRange)
Dealloc(AutoLRValue)
|
|