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 


HEX to ASM

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

Joined: 07 Jun 2007
Posts: 21

PostPosted: Thu Jun 07, 2007 3:14 am    Post subject: HEX to ASM Reply with quote

I'm not sure if this belongs here, but I was wondering if anyone could tell me, or point me in the right direction, how to convert hex to asm? This is basically what I am trying to do:

746Bh ----> je short 0x0068E1A8

How does 746Bh compute to je short 0x0068E1A8? Any help would be greatly appreciated.
Back to top
View user's profile Send private message
assaf84
Expert Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 238

PostPosted: Thu Jun 07, 2007 5:27 am    Post subject: Reply with quote

0x74 is, i guess, the binary code of JE to a near address, and 0x6b is the distance from the original address (im not sure). A long pointer is 4 bytes, so it should be about 5 bytes the whole opcode, so if its only 2 I guess its for a close address.
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Thu Jun 07, 2007 7:40 am    Post subject: Reply with quote

assaf84 wrote:
0x74 is, i guess, the binary code of JE to a near address, and 0x6b is the distance from the original address (im not sure). A long pointer is 4 bytes, so it should be about 5 bytes the whole opcode, so if its only 2 I guess its for a close address.


Yeah, thats right. Its a short jump so its 2 bytes i think. So it should be 0x74 0x6b
Back to top
View user's profile Send private message MSN Messenger
--Pillboi--
Grandmaster Cheater Supreme
Reputation: 0

Joined: 06 Mar 2007
Posts: 1383
Location: I don't understand the question. Is this a 1 to 10 thing?

PostPosted: Thu Jun 07, 2007 9:43 am    Post subject: Reply with quote

What they said... and the h at the end means hex. Wink
_________________

Enter darkness, leave the light, Here be nightmare, here be fright...
Earth and Water, Fire and Air. Prepare to meet a creature rare.
Enter now if you dare, Enter now the dragon's lair.
Back to top
View user's profile Send private message
MooMooCow
Newbie cheater
Reputation: 0

Joined: 07 Jun 2007
Posts: 21

PostPosted: Thu Jun 07, 2007 3:54 pm    Post subject: Reply with quote

Thanks for your replies so far. Is there any documentary that explains this in detail, or any kind of function in C++ that will convert hex to asm?
Back to top
View user's profile Send private message
DeltaFlyer
Grandmaster Cheater
Reputation: 0

Joined: 22 Jul 2006
Posts: 666

PostPosted: Thu Jun 07, 2007 4:22 pm    Post subject: Reply with quote

The Intel's Architecture Software Developer's Manual describes this in great detail. You can obtain a copy of it directly from Intel's website:
http://developer.intel.com/design/pentium/manuals/243191.htm

Look for the opcode reference section. It gives you the hex values of each usage of the command. Read the whole chapter 3 if you wish to fully understand their writing.

If you just want to convert hex to opcodes, you could probably get some info out of the source of CE's assembler.

_________________

Wow.... still working at 827... what's INCA thinking?
zomg l33t hax at this place (IE only). Over 150 people have used it, what are YOU waiting for?
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