Re: preserving flags across inline assembler blocks
- From: "snowman" <snowman75@xxxxxxxxx>
- Date: Mon, 27 Jun 2005 10:35:26 -0400
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.
"_Rob_" wrote:
> Does anyone know which flags need to be preserved across __asm blocks when
> using inline assembler in Visual C++? The MSDN documentation is unclear.
>
> I am guessing that you don't need to preserve the status flags but that
> the control flag and system flags do need to be preserved.
>
> Is this correct?
>
> Cheers,
>
> Rob
>
.
- Follow-Ups:
- Re: preserving flags across inline assembler blocks
- From: Bertrand Augereau
- Re: preserving flags across inline assembler blocks
- References:
- preserving flags across inline assembler blocks
- From: _Rob_
- preserving flags across inline assembler blocks
- Prev by Date: Re: A challenge for RosAsm
- 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
|