yuan950555 發表於 2018-8-1 10:27:14

TwMS 209.1 ICS 人物左右走

本帖最後由 yuan950555 於 2018-8-1 10:46 編輯

//TwMS 209.1 ICS 人物左右走

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   , 0096E9AF               
Jne   ICSReturn
Mov   , AutoLRMain
ICSReturn:
Jmp   GetFocus
//-------------------
AutoLRMain:

Cmp   , 0
Je 0096E9AF               
Push  Eax
Inc   
Mov   Eax,
Cmp   Eax,
Jge   GoLeft
Add   Eax,
Cmp   Eax,
Jge   GoRight
Mov   , 1
Jmp   GoLeft

GoLeft:
Mov   , FFFFFFFF
Pop   Eax
Jmp   0096F1F7                        

GoRight:
Mov   , 00000001
Pop   Eax
Jmp   0096F1F7               
//-----------------------------------------------


039458C0:                //c8 ?? ?? ?? f6 9b ?? ?? ?? ?? d2 ?? ?? 96 d1 77 ?? 89 ?? 77 ?? e8 ?? ?? ?? ??
DD AutoLRICSEntry

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

頁: [1]
查看完整版本: TwMS 209.1 ICS 人物左右走