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 


subss byte code discrepancy

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
rkubes
How do I cheat?
Reputation: 0

Joined: 08 Dec 2014
Posts: 8

PostPosted: Sat Dec 13, 2014 4:56 am    Post subject: subss byte code discrepancy Reply with quote

Hello,

There is an instruction that exists in the game I was hacking as follows:
F3 41 0F5C C4 - subss xmm0,xmm4

Say I change that to nop, then I tell Cheat Engine to change it back, when I type "subss xmm0, xmm4" I get a different byte code

F3 0F5C C4 - subss xmm0,xmm4

Notice the 41 missing.

This produces much different results.

Really even if I double click the original instruction and just hit enter, Cheat Engine wants to change it from 5 bytes to 4 bytes.

Does anyone have any insight on what the difference is?

In this particular case, xmm0 = 30.00, and xmm4 = 108.61 as a float; when the correct instruction runs, xmm0 is 29.95 (not sure where the 0.05 came in). When the incorrect (CE) instruction runs, xmm0 is set to -78.61 (as you would expect). However, this produces undesired behavior in-game.

Any assistance or insight will be greatly appreciated! I know in the mean time I can just tell CE which bytes to write, but I would like to know what's going on. Thanks!
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sat Dec 13, 2014 5:06 am    Post subject: Reply with quote

Don't manually edit the bytes...let CE fill the code with NOP's for you...then, when you change it back, let CE build the code back for you. You shouldn't have to type anything.
Back to top
View user's profile Send private message
rkubes
How do I cheat?
Reputation: 0

Joined: 08 Dec 2014
Posts: 8

PostPosted: Sat Dec 13, 2014 5:11 am    Post subject: Reply with quote

Thanks for the suggestion, the problem is Cheat Engine seems to be reporting the original code wrong from the bytes.

After further investigating I was able to determine the following:

The original Byte Code is
F3 41 0F5C C4

This actually translates to: subss xmm0,xmm12

However, the CE disassembler thinks it means: subss xmm0,xmm4

If I manually type in "subss xmm0,xmm12" Cheat Engine assembles it correctly (but even after the change still reads the instruction as "subss xmm0,xmm4")

Just a display bug
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Sat Dec 13, 2014 7:10 am    Post subject: Reply with quote

This seems to be already fixed in the svn
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

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