冰楓論壇
標題:
左右走 不偏移數據
[打印本頁]
作者:
givemeasmile01
時間:
2020-6-25 21:00
標題:
左右走 不偏移數據
如標題 收個
作者:
rhg59321
時間:
2020-6-28 19:39
這個會偏?
// TwMS v226.2 ICS 人物左右走
[ENABLE]
RegisterSymbol(AutoLRRange)
RegisterSymbol(AutoLRMain)
Alloc(AutoLRICSEntry,64)
Alloc(AutoLRMain,128)
Alloc(AutoLRRange,04)
Alloc(AutoLRValue,04)
Label(GoLeft)
Label(GoRight)
//-----------------------------------------------
AutoLRRange:
DD A //16進制 A=10 設置0為不左右走
//-----------------------------------------------
AutoLRICSEntry:
cmp [esp],00B3DE0A
jne GetFocus
mov [esp],AutoLRMain
jmp GetFocus
//-------------------
AutoLRMain:
cmp [AutoLRRange], 0
je 00B3DE0A
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 00B3E6B1
GoRight:
mov [ebp-1C],00000001
pop eax
jmp 00B3E6B1
04340068:
DD AutoLRICSEntry
[DISABLE]
04340068:
DD GetFocus
DeAlloc(AutoLRMain)
DeAlloc(AutoLRRange)
DeAlloc(AutoLRValue)
DeAlloc(AutoLRICSEntry)
UnRegisterSymbol(AutoLRMain)
UnRegisterSymbol(AutoLRRange)
歡迎光臨 冰楓論壇 (https://bingfong.com/)
Powered by 冰楓