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,757 of 4,675    |
|    R.Wieser to All    |
|    Re: Manners everyone!    |
|    05 Jan 19 07:34:14    |
      From: address@nospicedham.not.available              Rod,              > Mike tends to post once and go.              That does explain(?) why bernard jumped in so fast.              > How do you find the prior stackframe without having saved it via EBP?              Easy: By removing the current stackframe by adding a constant (for that       procedure) to ESP. At least, when you use bernards way of doing things.              > So, he's likely using using the "maximum # of arguments" count       > to either manually restore ESP              That count does not even make sense (other than to compare agains to check       for some kind of overflow), as the ammount of *actually* used arguments can       be (way) less.              > or using a "RET imm16" instruction for stack cleanup.              Exactly. And I mentioned that as such in my reply to mike.                     Alas, none of this touches my two questions : Why would that value need to       be present, and why does it need to be stored in the stackframe. (mike: "Use       a stack frame which contains .... the maximum number of called function       arguments").              And mind you, this was a response to mikes suggestion to james, which had       zero reference to bernards work.              And for the record: Even now I get what bernard is doing there I do not see       any use for that number to exist (outside of at assemble time), nor why to       store it on the stack. AFAICS its a simple, static value.              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