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,733 of 4,675    |
|    James Harris to Mike Gonta    |
|    Re: Locals, parameters, callee-save regi    |
|    02 Jan 19 17:48:34    |
      From: james.harris.1@nospicedham.gmail.com              On 01/01/2019 23:37, Mike Gonta wrote:       > James Harris wrote:       >> So the basic query is: if given free rein on x86 how would you recommend       >> storing callee-save registers and locals while providing convenient       >> access to stack-based parameters?       >       > Use a stack frame which contains the saved registers, local parameters and       > the maximum number of called function arguments all of which (including       > the function's parameters) are accessed by MOV (no PUSH/POP) with ESP.              I can see that making ESP stable would allow you to free up EBP. But,       two queries:              1. Would that prevent a debugger from understanding stack frames?              2. Why not use the much shorter (1 byte instead of 4) push and pop?                     --       James Harris              --- 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