| View previous topic :: View next topic |
| Author |
Message |
MooMooCow Newbie cheater
Reputation: 0
Joined: 07 Jun 2007 Posts: 21
|
Posted: Thu Jun 07, 2007 3:14 am Post subject: HEX to ASM |
|
|
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 |
|
 |
assaf84 Expert Cheater
Reputation: 0
Joined: 03 Oct 2006 Posts: 238
|
Posted: Thu Jun 07, 2007 5:27 am Post subject: |
|
|
| 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 |
|
 |
Noz3001 I'm a spammer
Reputation: 26
Joined: 29 May 2006 Posts: 6220 Location: /dev/null
|
Posted: Thu Jun 07, 2007 7:40 am Post subject: |
|
|
| 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 |
|
 |
--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?
|
Posted: Thu Jun 07, 2007 9:43 am Post subject: |
|
|
What they said... and the h at the end means hex.
_________________
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 |
|
 |
MooMooCow Newbie cheater
Reputation: 0
Joined: 07 Jun 2007 Posts: 21
|
Posted: Thu Jun 07, 2007 3:54 pm Post subject: |
|
|
| 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 |
|
 |
DeltaFlyer Grandmaster Cheater
Reputation: 0
Joined: 22 Jul 2006 Posts: 666
|
Posted: Thu Jun 07, 2007 4:22 pm Post subject: |
|
|
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 |
|
 |
|