| Chris May 27, 2005, 01:34 PM |
|
For VS you've got to save everything except eax, ecx, edx. That is, you must save ebx,esi,edi,esp,ebp, and the direction flag (CLD).
This is true for versions as far back as Visual Studio 5, and includes the newest ones.
Other compilers, I don't know. gcc allows you to tell it what registers you don't preserve (clobber lists), Watcom C++ also did, but it's out of fashion nowadays. Intel is like MSVC, I'd bet.
|