deama1234 Master Cheater
Reputation: 3
Joined: 20 Dec 2014 Posts: 328
|
Posted: Wed Jun 28, 2017 9:44 am Post subject: Creating new thread script doesn't turn on |
|
|
I'm trying to create a thread that will periodically update a value, here's my code:
| Code: | [ENABLE]
//[psi] + 00000408 -- psi (float)
//[hypo] + 54 -- psi hypo (4bytes)
alloc(newmem,4096)
createthread(newmem);
label(notValid)
alloc(mine,16)
alloc(divide,16)
alloc(end,16)
registersymbol(mine)
registersymbol(divide)
registersymbol(end)
divide:
dd (float)10
end:
dd 0
newmem:
//cmp [psi],0
//je notValid
//cmp [psih],0
//je notValid
mov rax,[hypo]
mov rbx,[psi]
//fild [rax+54]
//fild [psih]
//fdiv [divide]
//fadd [rax+00000408]
//fstp [rax+00000408]
notValid:
push #1000
call sleep
cmp [end],01
jne newmem
ret
[DISABLE]
end:
dd 1
dealloc(mine)
dealloc(divide)
unregistersymbol(mine)
unregistersymbol(divide)
|
The problem is that when I try to activate it, it doesn't activate (no red X comes up), but when I remove either "mov rax,[hypo]" or "mov rbx,[psi]" it works.
So if I just had "mov rax,[hypo]" or "mov rbx,[psi]" on its own then it would activate (the red X would come up).
If I have just "mov rax,[hypo]" or "mov rbx,[psi]" and then if I add in "mov rcx,01" then it works. It for some reason just doesn't want to activate when I have both [hypo] and [psi] in the script. Is there some sort of limitation? I have checked to make sure the spellings and the addresses exist.
Any ideas what the problem could be?
|
|