Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


why cannot disable the auto assmble

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
lazybug
Newbie cheater
Reputation: 0

Joined: 06 Dec 2011
Posts: 10

PostPosted: Wed Dec 14, 2011 1:34 am    Post subject: why cannot disable the auto assmble Reply with quote

I make the script for learning. when I assign it to table, and toggle it in addresslist window. I clicked the active square twice .the code would be no changed(first insert jmp, then recover to original code),but I find the address where I insert jmp always be jmp.

could anyone give some idea. thks

Code:

[ENABLE]
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
alloc(life,4)
label(myexit)
mov [life],64
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
pushad
pushfd
push 58
call GetAsyncKeyState
test ax,8000
jz myexit
mov eax,[life]
mov [ebx+458],eax
myexit:
popfd
popad


originalcode:
sub [ebx+00000458],eax

exit:
jmp returnhere

420F3E:
jmp newmem
nop
returnhere:
[DISABLE]
dealloc(newmem)
dealloc(life)
420F3E:
sub [ebx+00000458],eax
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8588
Location: 127.0.0.1

PostPosted: Wed Dec 14, 2011 9:41 am    Post subject: Reply with quote

Try adding an extra blank line just before your [DISABLE] tag.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Dark Byte
Site Admin
Reputation: 475

Joined: 09 May 2003
Posts: 26001
Location: The netherlands

PostPosted: Wed Dec 14, 2011 12:16 pm    Post subject: Reply with quote

His topic title is wrong as it's not even executing the enable part

First thing:
Change "mov [life],64" to

[code]
life:
dd 64
[/cod]

_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites