[Issue 474] in ASM block last line can't be a label

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Nov 2 23:18:10 PST 2006


http://d.puremagic.com/issues/show_bug.cgi?id=474


davidl at 126.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|in ASM block last line can't|in ASM block last line can't
                   |be a label                  |be a label




------- Comment #2 from davidl at 126.com  2006-11-03 01:18 -------
consider this
class
{
        int dynamicarray[];
        void method()
        {
             asm
             {
                    mov EAX,this;        //failed;
             }
             asm
             {
                    lea EAX, dynamicarray[0]; //without this this ain't gonna
work properly

             }

        }
}


and consider this in a func bar
void bar()
{
   int dynamicarray[];
   asm
   {
       lea EAX,dynamicarray[1];   //this won't tell the address IMHO

   }

}

and how to deal with dynamic array in ASM is  a pain in ass in D


-- 




More information about the Digitalmars-d-bugs mailing list