prt 發表於 2019-2-12 00:06:28

TwMS 213.3 ICS 人物左右走

//TwMS 213.3 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   , 009BE1C1
Jne   ICSReturn
Mov   , AutoLRMain
ICSReturn:
Jmp   GetFocus
//-------------------
AutoLRMain:
Cmp   , 0
Je 009BE1C1
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   009BDFE3

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


03BBF2A8:
DD AutoLRICSEntry

03BBF2A8:
DD GetFocus

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


009BE1B1 //3b * 0f 85 * * * * 8b 0d * * * * e8 * * * * 85 * 0f 84 * * * * 83 3d * * * * *  0f 85 * * * * 8b * 8b *
頁: [1]
查看完整版本: TwMS 213.3 ICS 人物左右走