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 


[BUG] - ASM interpretation

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

Joined: 11 Apr 2010
Posts: 3

PostPosted: Sun Apr 11, 2010 5:29 pm    Post subject: [BUG] - ASM interpretation Reply with quote

When viewing this code in the cheat engine assembler:
Code:
A0 78 56 34 12 : mov ax,[12345678]


If i hit the opcode and change it to "mov ax,[12345678]" (the same)

CheatEngine will change the exact same opcode to:

Code:
66 8B 05 78 56 34 12 : mov ax,[12345678]



(where did "66 8B 05" come from? Very Happy )
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: Sun Apr 11, 2010 5:32 pm    Post subject: Reply with quote

it's an alternate way to write this instruction, when executed, it'll have the same effect

Looks like ce just didn't pick the smallest possible instruction but the most compatible one

only way to get it to compile this instruction with the A0 instruction is:
Code:

db a0 78 56 34 12

_________________
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
malu05
How do I cheat?
Reputation: 0

Joined: 11 Apr 2010
Posts: 3

PostPosted: Sun Apr 11, 2010 5:40 pm    Post subject: Reply with quote

Dark Byte wrote:
it's an alternate way to write this instruction, when executed, it'll have the same effect

Looks like ce just didn't pick the smallest possible instruction but the most compatible one

only way to get it to compile this instruction with the A0 instruction is:
Code:

db a0 78 56 34 12


Ye, could see that from the instruction set.
I just find it funny that it wanted to overwrite it with something bigger than the original hence screwing up the code. But hey...

Never really thought about it but ive been using your tool for like 2 years now, and i must say i have learned soo much.
On one hand i feel like such a newb not moving on the IDA or Olly but hey, there is a certain charm to "simple" yet effective tools (note the "" around simple, but i guess you know what i mean).
Thanks alot for all your hard work!
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Sun Apr 11, 2010 7:09 pm    Post subject: Reply with quote

malu05 wrote:
I just find it funny that it wanted to overwrite it with something bigger than the original hence screwing up the code. But hey...

it would mess up in the same way if it overwrote a bigger code with a smaller one :/
Back to top
View user's profile Send private message
Radiation
Grandmaster Cheater
Reputation: 14

Joined: 17 Jun 2009
Posts: 842
Location: Chernobyl

PostPosted: Mon Apr 12, 2010 12:54 am    Post subject: Reply with quote

Slugsnack wrote:
malu05 wrote:
I just find it funny that it wanted to overwrite it with something bigger than the original hence screwing up the code. But hey...

it would mess up in the same way if it overwrote a bigger code with a smaller one :/


unless you NOP the remaining bytes Smile

_________________
Jesus loves you, Hitler! Smile

Playing/Embedding XM and MOD files in Visual Basic 6

.erutangis ruoy ni siht esu neht ,sdrawkcab siht daer ot hguone trams erew uoy fI
I can spell your name backwards: ‮Hitler
Back to top
View user's profile Send private message
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