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 


Same opcodes,different Bytes

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

Joined: 01 Aug 2018
Posts: 14

PostPosted: Tue Aug 18, 2020 2:59 pm    Post subject: Same opcodes,different Bytes Reply with quote

Hi,while I was trying to make a cheat for unlimited ammo in Enter the Gungeon I've encountered something strange as you can see on the screenshot,there are two identical opcodes(sub ecx,r15d)
but the bytes are different
If I choose to assemble the instruction and I put the same opcode again,then the bytes change to (44 29 F9) instead of (41 2B CF)

How is this possible? does that means different bytes can be interpreted as the same oppcode?



CEETG.png
 Description:
 Filesize:  119.55 KB
 Viewed:  1634 Time(s)

CEETG.png


Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Tue Aug 18, 2020 3:30 pm    Post subject: Reply with quote

yes, there are multiple versions that do the same thing

in this case there are 2 similar instructions
Code:

29 xx sub reg/memlocation,reg
2b xx sub reg,reg/memlocation


since no memorylocation is needed it's going to be
sub reg,reg

and both versions can be picked for that.

_________________
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
TurboKid
Newbie cheater
Reputation: 0

Joined: 01 Aug 2018
Posts: 14

PostPosted: Wed Aug 19, 2020 12:41 pm    Post subject: Reply with quote

Ok thanks for your answer,that means next time I modify an instruction,I better copy both the opcode and the bytes in order to restore it
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