Opeple0627 發表於 2019-9-18 16:23:47

TwMS v219.2 ICS 人物左右走

本帖最後由 Opeple0627 於 2019-9-18 16:25 編輯

//TwMS v219.2 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   , 009DF153
Jne   ICSReturn
Mov   , AutoLRMain
ICSReturn:
Jmp   GetFocus
//-------------------
AutoLRMain:
Cmp   , 0
Je 009DF153
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   009DEF75

GoRight:
Mov   , 00000001
Pop   Eax
Jmp   009DEF75
//-----------------------------------------------


03DBFE80:
DD AutoLRICSEntry

03DBFE80:
DD GetFocus

Dealloc(AutoLRICSEntry)
UnregisterSymbol(AutoLRMain)
Dealloc(AutoLRMain)
UnregisterSymbol(AutoLRRange)
Dealloc(AutoLRRange)
Dealloc(AutoLRValue)

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