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,743 of 4,675    |
|    R.Wieser to All    |
|    Re: Locals, parameters, callee-save regi    |
|    03 Jan 19 09:21:36    |
      From: address@nospicedham.not.available              James,              > Also adding weight to the theory that starting an x86 subroutine by       > pushing EBP is normal, Nasm's %arg feature assumes the first parameter is       > at EBP+8, i.e. after the old EBP and the return address.              As long as you are looking at argument labels it would possibly be a good       idea to see if you can give (some or all of) the preserved registers (and       memory locations?) labels too. It makes no sense to preserve a register       also used as an argument, only to have to store it again locally so you get       a label for and by it can retrieve it multiple times in your procedure.              Either that, or just store it locally and restore it yourself (using a MOV,       not a POP :-) ) at the end of the procedure.              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