home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.asm.x86      Ahh, the lost art of x86 assembly      4,675 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 3,638 of 4,675   
   R.Wieser to All   
   Re: Indirect INT calling   
   30 Oct 18 08:17:38   
   
   From: address@nospicedham.not.available   
      
   Terje,   
      
   > You would definitely NOT want to use it unless you really have to:   
      
   Agreed.  Looking at its exit point I see two local variables being discarded   
   *and* a near RET.  In other words, it uses more, not less stack that the   
   simpler solution ...   
      
   > If we have a spare register then it becomes possible to do this with zero   
   > stack overhead   
      
   I have not looked too hard at the packetdrivers API to see if I could find   
   one,  but what about the last stack adjustment XCHG-ing the saved register   
   with the stacks intended value ?   
      
   I'll have to look into that, if only to see if it would work (can't imagine   
   it will be pretty).   
      
   > or we can use more complicated code to achieve the same:   
      
   Clever: using an IRET to grab the flags and jump to the intended target.   
   Dont' think I would ever thought about doing it that way.   
      
   Thanks for the code /help.   
      
   Regards,   
   Rudy Wieser   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca