Re: preserving flags across inline assembler blocks



snowman wrote:
First thing, since you are using c++ you'll have to worry about name mangling and probably have to use the extern "C" declaration. You should google it for more info (or check the MSDN docs).

You'll also have to consider calling conventions (_stdcall, _cdecl) and decide who will pop argements off the stack.

Finally, you'll have to preserve at leasy EBX, EBP, EDI and ESI. The MSDN docs make this VERY clear. Search for "calling conventions".

cheers,

snow.


Well he speaks of asm inline blocks, not asm functions, I guess.
And he wants to know if he has to preserve all the flags, or if it is not necessary, which is a different matter.
.




Relevant Pages

  • Re: using OpenFileDialog
    ... > 1) I think I heard that there are "millions" of pages on MSDN. ... > to a google query. ... unmanaged code until this thread. ... MFC, so that is what I need to learn quickly. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Kill a Task
    ... Part of the problem is that Google is so good, ... A huge part of the MSDN problem is that their ... the technical side of things the presenting of 'New' technology first. ... fail to return the information on the error. ...
    (microsoft.public.windows.server.security)
  • Re: STRG+C über den COM-Port senden
    ... abgesehen von der MSDN, ... mich durch Google und auch durch die MSDN ... Kopf: Du kannst deine Hardware kaputt machen, ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • Re: win32 and directories
    ... > Yeah, if you know what you are looking for you can find it. ... the exact API name I'm looking for, Google is first stop. ... It is almost impossible to find anything on MSDN, ...
    (comp.programming)
  • Re: posting via MSDN or Google
    ... portfor NNTP so I cant use another reader. ... "Managed newsgroups are for current MSDN Universal, Enterprise, ... I post with the google groups interface ... posting using my MSDN account versus posting with just a regular ol' ...
    (microsoft.public.vc.mfc)