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 


Cheat Engine weird disassembler behavior

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

Joined: 07 Dec 2021
Posts: 8

PostPosted: Tue Jan 02, 2024 10:42 am    Post subject: Cheat Engine weird disassembler behavior Reply with quote

As seen in the screenshots, cheat engine disassembles the enter 5089,70 instruction incorrectly, when i select the instruction and try to shift the bytes by 1, it starts shifting the bytes by the topmost instruction which is not the instruction i selected, when i align the instruction i want to shift the bytes of as the topmost instruction and then shift the bytes of it, the moment i scroll up it just goes back to its old state, how can i permanently change how a snippet of machine code is disassembled (meaning even when i scroll up or down it wont change)?


incorrectdisassembly.PNG
 Description:
Incorrect disassembly
 Filesize:  8.49 KB
 Viewed:  1526 Time(s)

incorrectdisassembly.PNG



correctdisassembly.PNG
 Description:
This is the correct disassembly after i shifted the bytes by 1
 Filesize:  10.27 KB
 Viewed:  1526 Time(s)

correctdisassembly.PNG


Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 143

Joined: 06 Jul 2014
Posts: 4393

PostPosted: Tue Jan 02, 2024 4:09 pm    Post subject: Reply with quote

You can't.

If it really bothers you, replace those three '00' bytes with 'CC'.
Don't do this if the area between functions is used for data. Only do that for padding.

Use the left / right arrow keys to manually shift the disassembler start address by 1 byte.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Hexist
How do I cheat?
Reputation: 0

Joined: 07 Dec 2021
Posts: 8

PostPosted: Tue Jan 02, 2024 5:56 pm    Post subject: Reply with quote

ParkourPenguin wrote:
You can't.

If it really bothers you, replace those three '00' bytes with 'CC'.
Don't do this if the area between functions is used for data. Only do that for padding.

Use the left / right arrow keys to manually shift the disassembler start address by 1 byte.


What do you mean by "data" exactly ?

I assume you mean allocated variables, objects in memory.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 143

Joined: 06 Jul 2014
Posts: 4393

PostPosted: Tue Jan 02, 2024 6:05 pm    Post subject: Reply with quote

"data" as in primitive values. Floating point values, pointers (e.g. jump table), etc.

The bytes that comprise such values will get disassembled as garbage. You can't change those values without incurring side effects, unlike padding bytes that do nothing and as such can be changed freely.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
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