Re: preserving flags across inline assembler blocks
- From: Bertrand Augereau <bertrand_myfamilynamegoeshere@xxxxxxxx>
- Date: Mon, 27 Jun 2005 16:48:00 +0200
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.
.
- Follow-Ups:
- Re: preserving flags across inline assembler blocks
- From: snowman
- Re: preserving flags across inline assembler blocks
- References:
- preserving flags across inline assembler blocks
- From: _Rob_
- Re: preserving flags across inline assembler blocks
- From: snowman
- preserving flags across inline assembler blocks
- Prev by Date: Re: preserving flags across inline assembler blocks
- Next by Date: Re: preserving flags across inline assembler blocks
- Previous by thread: Re: preserving flags across inline assembler blocks
- Next by thread: Re: preserving flags across inline assembler blocks
- Index(es):
Relevant Pages
|