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 


Translating some ASM stuff to bytes

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

Joined: 25 Jan 2011
Posts: 5

PostPosted: Tue Jan 25, 2011 9:51 am    Post subject: Translating some ASM stuff to bytes Reply with quote

Just having some troubles what are really slowing down my work.
I am replacing some code in binary... but it is not a point.
So, i want to place somewhere in a code "jmp 9000" for example. Of course i can't do it directly through ASM, i need to know it's byte equivalents.
So, what we have for jmp 9000?
e9 14 68 bb ff
e9 is jump short obviously.
FF is... probably kind of zero?
All others are... 9000? What kind of counting it is? It makes completely no sense for me, at least because
9000: 14 68 bb ff
10500: 14 db bb ff
575000: 14 4d c0 ff
14s! Surprise:
123: 39 d7 ba ff
Thats quiet strange for me, i don't even have a single idea how to convert some integer value to this.
Any help or at least hint is very appreciated.
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Tue Jan 25, 2011 10:18 am    Post subject: Reply with quote

There's no consistent pattern. If you want to do translation like this look into intel's manuals.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Tue Jan 25, 2011 12:34 pm    Post subject: Reply with quote

Jumps are calculated based on the distance between the jump and the destination.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
RCard
How do I cheat?
Reputation: 0

Joined: 25 Jan 2011
Posts: 5

PostPosted: Tue Jan 25, 2011 12:50 pm    Post subject: Reply with quote

Probably a simple example of HOW it is calculated? I don't really know thing about it's calculation methods, thats a really "pitch black" for me.
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Tue Jan 25, 2011 12:54 pm    Post subject: Reply with quote

it's the difference in address - 5
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 programming 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