Re: preserving flags across inline assembler blocks
- From: "snowman" <snowman75@xxxxxxxxx>
- Date: Mon, 27 Jun 2005 12:15:42 -0400
ah. I missed the part about *inline*. You will then have to just consider
the calling convention used, and worry mainly about the registers you use
within the __asm block, as well as the ESP and EBP unless you need to switch
stacks.
But you should also be aware that register values are not guaranteed to be
preserved across separate __asm blocks. If you need this, then preserve the
EAX, EBX, ECX, EDX, ESI, EDI registers.
The __asm block inherits whatever register values result from the normal
flow of control. If you use the STD or CLD instructions to change
direction, you will need to restore the original direction flag.
snow.
"Bertrand Augereau" wrote:
> 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.
.
- References:
- preserving flags across inline assembler blocks
- From: _Rob_
- Re: preserving flags across inline assembler blocks
- From: snowman
- Re: preserving flags across inline assembler blocks
- From: Bertrand Augereau
- preserving flags across inline assembler blocks
- Prev by Date: Re: preserving flags across inline assembler blocks
- Next by Date: Re: Click...
- Previous by thread: Re: preserving flags across inline assembler blocks
- Next by thread: A challenge for RosAsm
- Index(es):
Relevant Pages
|