//----------------------------------------
//滑鼠移動(左趴右趴版)_TWMS115
//----------------------------------------
[Enable]
alloc(MouserX,512)
alloc(MouserY,512)
alloc(CSX,128)
alloc(OnOff,128)
label(normal)
label(normalx)
label(normaly)
label(back)
label(return)
label(On)
label(Off)
registersymbol(CSX)
registersymbol(OnOff)
OnOff:
dd 0
CSX:
push eax
mov eax,[00CA05D8]
cmp [eax+03A8],a
je On
cmp [eax+03A8],b
je Off
pop eax
jmp MouserX
normal:
pop eax
mov [ebx], eax
mov edi,[ebp+10]
jmp back
back:
jmp 00A606AC
return:
jmp 00A60711
On:
pop eax
mov [OnOff],1
jmp MouserX
Off:
pop eax
mov [OnOff],0
jmp MouserX
MouserX:
cmp [OnOff],0
je normalx
push eax
mov eax,[00CA05D8]
mov eax,[eax+1100]
cmp esi,eax
pop eax
jne normalx
mov eax,[00CA099C]
mov eax, [eax+0978]
mov eax, [eax+84]
mov [ebx], eax
mov edi,[ebp+10]
test edi, edi
jne MouserY
jmp 00a6070e
normalx:
mov [ebx], eax
mov edi,[ebp+10]
jmp back
MouserY:
push eax
mov eax,[00ca05D8]
mov eax,[eax+1100]
cmp esi,eax
pop eax
jne normaly
mov eax, [00CA099C]
mov eax, [eax+0978]
mov eax, [eax+88]
mov [edi], eax
mov ebx,[ebp+14]
jmp return
normaly:
mov [edi], eax
mov ebx,[ebp+14]
jmp return
00A606A7:
jmp CSX
[Disable]
00A606A7:
DB 89 03 8B 7D 10
dealloc(MouserX)
dealloc(MouserY)
dealloc(CSX)
dealloc(OnOff)
unregistersymbol(CSX)
unregistersymbol(OnOff) |