Re: [Inline assembler] Sequential `asm` blocks and return via EAX

2012-03-09 Thread Denis Shelomovskij
08.03.2012 14:00, Alex Rønne Petersen пишет: On 08-03-2012 10:42, Denis Shelomovskij wrote: 1. Is there any guaranties that no code will be added between sequential inline assembler blocks, e.g.: --- void f() { static if(x) asm { mov EBX, 3; } else asm { mov EBX, 7; } asm { mov EAX, EBX; } //

[Inline assembler] Sequential `asm` blocks and return via EAX

2012-03-08 Thread Denis Shelomovskij
1. Is there any guaranties that no code will be added between sequential inline assembler blocks, e.g.: --- void f() { static if(x) asm { mov EBX, 3; } else asm { mov EBX, 7; } asm { mov EAX, EBX; } // Is EBX value defined here? } --- Is it documented? 2. Such

Re: [Inline assembler] Sequential `asm` blocks and return via EAX

2012-03-08 Thread James Miller
On 8 March 2012 22:42, Denis Shelomovskij verylonglogin@gmail.com wrote: 1. Is there any guaranties that no code will be added between sequential inline assembler blocks, e.g.: --- void f() {    static if(x)        asm { mov EBX, 3; }    else        asm { mov EBX, 7; }    asm { mov

Re: [Inline assembler] Sequential `asm` blocks and return via EAX

2012-03-08 Thread Alex Rønne Petersen
On 08-03-2012 10:42, Denis Shelomovskij wrote: 1. Is there any guaranties that no code will be added between sequential inline assembler blocks, e.g.: --- void f() { static if(x) asm { mov EBX, 3; } else asm { mov EBX, 7; } asm { mov EAX, EBX; } // Is EBX value defined here? } I don't think

Re: [Inline assembler] Sequential `asm` blocks and return via EAX

2012-03-08 Thread Daniel Murphy
Denis Shelomovskij verylonglogin@gmail.com wrote in message news:jj9uv1$8o$1...@digitalmars.com... 1. Is there any guaranties that no code will be added between sequential inline assembler blocks, e.g.: --- void f() { static if(x) asm { mov EBX, 3; } else asm

Re: [Inline assembler] Sequential `asm` blocks and return via EAX

2012-03-08 Thread Alex Rønne Petersen
On 08-03-2012 14:48, Daniel Murphy wrote: Denis Shelomovskijverylonglogin@gmail.com wrote in message news:jj9uv1$8o$1...@digitalmars.com... 1. Is there any guaranties that no code will be added between sequential inline assembler blocks, e.g.: --- void f() { static if(x) asm