News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Windows Procedure; pushad and popad

Started by raleeper, August 09, 2011, 09:28:06 PM

Previous topic - Next topic

hutch--

The Intel ABI is the action, over time I have seen many foolish shortcuts that end up coming down around their ears with another Windows version. You can use PUSHAD / POPAD for the occasional debugging or testing purpose but for production code you should learn the Intel ABI and ensure your code is fully compliant.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

dedndave

thanks, sinsi
i had never noticed that in the quick-note references
good to know   :U

i do use this little trick   :P
       mov     edi,sizeof SomeStruct
       pushad

;ESP = structure address with cbSize initialized

EDI is the last to be pushed   :bg
you can, of course, use other registers to initialize up to 6 more of the first 8 structure members