This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

extended asm


 asm ("leal (%1,%1,4), %0"
: "=r" (x)
: "0" (x) );

till now i was in kowledge that there is somewhat
input and output operand. but i am not able to
understand what this could mean?


asm("movb %3,%0":"=r"(x),"=r"(y):"r"(a),"r"(b));
now what should technically happen is the value in b
should move to x but the fun part is y is also
initialised by same value. why is it so and from where
this value comes from


ankit

________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]