Exetools  

Go Back   Exetools > General > General Discussion

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 09-13-2005, 23:34
doug
 
Posts: n/a
if the destination is more than 0x7F bytes away from the instruction following your Jcc, then use the long form.

But honestly, do you think that an extra 4-bytes really matter, if you consider the greatly added simplicity of *always* using the 6-byte instruction (0F 8x)?

If you start resizing instructions, then you have to make sure that *all* jumps that go beyond the resize/insertion point are also fixed. It's certainly not impossible, but seems like an overkill for what you want.

Last edited by doug; 09-13-2005 at 23:37.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculating the size in bytes of a C++ function yaa General Discussion 8 11-07-2007 09:15
opcode generator johnq General Discussion 4 01-02-2004 07:11


All times are GMT +8. The time now is 17:01.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )