CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2011
    Posts
    17

    Calls Less Than 5 Bytes

    Is there any way to write a call like this in less bytes?
    e8 02 00 00 00

    Thanks!
    Last edited by Mr. Smith; July 24th, 2011 at 08:35 PM.

  2. #2
    Join Date
    Jun 2010
    Location
    Germany
    Posts
    2,675

    Re: Calls Less Than 5 Bytes

    The only shorter call instruction I can think of at the moment is a call via a register, like CALL EAX (FF C2 if I "hand-assembled" it correctly) for instance. However, of course you'd need to get the destination address into the register first what certainly would eat up more than you gained with the shorter call instruction.
    I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.

    This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.

  3. #3
    Join Date
    Jun 2011
    Posts
    17

    Smile Re: Calls Less Than 5 Bytes

    Thanks for answering this!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured