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 


Disable code doesn't return it as intended?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Qvintus
Cheater
Reputation: 0

Joined: 07 Nov 2013
Posts: 32

PostPosted: Wed Jun 11, 2014 5:13 pm    Post subject: Disable code doesn't return it as intended? Reply with quote

I've got me a piece of code here, there is suppose to nop out a functionality and then return it as it was when disabled. However it seems to have its own idea of how this is done.

Code:

[ENABLE]
aobscan(combo, 89 8E 80 00 00 00 F3 0F11 46 4C)
label(_combo)
registersymbol(_combo)

combo+7:
_combo:
db 90 90 90 90 90
 
[DISABLE]
_combo:
db F3 0F11 46 4C
unregistersymbol(_combo)


So the above is suppose to return the byte
Code:
F3 0F11 46 4C

However it ends up returning:
Code:
F3 F3 11 46 4C

That is not what I asked for. How do I fix this and why does it do it?

Original
Code:
movss [esi+4C],xmm0

After Disable
Code:
repe adc[esi+4C],eax


I am quite lost at where I f'ed up.
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Wed Jun 11, 2014 5:22 pm    Post subject: This post has 1 review(s) Reply with quote

Offset is wrong.

Should be +6.
Back to top
View user's profile Send private message
Qvintus
Cheater
Reputation: 0

Joined: 07 Nov 2013
Posts: 32

PostPosted: Wed Jun 11, 2014 5:25 pm    Post subject: Reply with quote

++METHOS wrote:
Offset is wrong.

Should be +6.


Well same thing returns me with
Code:
F3 11 46 4C
instead

Also ends up with 4 instead 5 so I assume my offset was correct?

Sorry my bad! Adding a space between 0F and 11 fixed it. And ofc the offset to 6.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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