本帖最後由 boindary 於 2018-3-1 13:41 編輯
// TwMs v205.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], 008F447A Jne ICSReturn Mov [Esp], AutoLRMain
ICSReturn: Jmp GetFocus
//-------------------
AutoLRMain: Cmp [AutoLRRange], 0 Je 008F447A 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-18], FFFFFFFF Pop Eax Jmp 008F4CA2
GoRight: Mov [Ebp-18], 00000001 Pop Eax Jmp 008F4CA2
//-----------------------------------------------
03552820: DD AutoLRICSEntry
[DISABLE] 03552820: DD GetFocus Dealloc(AutoLRICSEntry) UnregisterSymbol(AutoLRMain) Dealloc(AutoLRMain) UnregisterSymbol(AutoLRRange) Dealloc(AutoLRRange) Dealloc(AutoLRValue)
|